whowho 发表于 2020-12-28 00:31:20

timer显示没被定义

>>> t1 = MyTimer()
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
    t1 = MyTimer()
NameError: name 'MyTimer' is not defined
>>> t1
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
    t1
NameError: name 't1' is not defined
>>>

hellomyprogram 发表于 2021-2-24 16:08:32

能发一下 class Mytimer 吗?
页: [1]
查看完整版本: timer显示没被定义