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).
怎样查询一个状态的运行时间长度?比如r为真时开始记录时间,当r变为假时,怎样知道r为真时存在的时间长度?
pyb.millis()可以获得当前运行时间(单位是毫秒),然后两个地方做减法