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).
import car
while True: car.run(100,100)
看了论坛里的讨论,用sleep time(如下程序),小车会一直运行,而不是运行一段时间就停止了。 import time import car
car.run(100,100) time.sleep(1000)
原因:time.sleep(1000)是sleep 1000秒,
解决办法:改为time.sleep(1)