我有一个为 python 2.7.3 编写的小型 python 程序:
import time def fun(): print('Hi') for i in range(3): Timer(i, fun).start()
当我运行它时,我收到错误:
NameError: name 'Timer' is not defined
如何找出支持此功能的模块?
python time nameerror python-3.x
nameerror ×1
python ×1
python-3.x ×1
time ×1