Python IDLE3.10.5 学习使用sleep函数
看视频教程这样写:
def wait():
time.sleep(3.3)
wait()
Traceback (most recent call last):
File "<pyshell#42>", line 1, in
wait()
File "<pyshell#41>", line 2, in wait
time.sleep(3.3)
NameError: name
在idle和 文件窗格都试了,一直报错