Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
time.sleep_ms()和pyb.delay()这两个函数有啥区别呢?在运行下面这个实时时钟的时候感觉这两个函数没有什么不同。
import time, pyb from pyb import RTC rtc = RTC() rtc.datetime((2013, 7, 9, 2, 0, 0, 0, 0)) while (True): print(rtc.datetime()) time.sleep_ms(1000) #pyb.delay(1000)
没有区别。