这种错误有很多种原因,目前我在做接口自动化测试的时候遇到的这个问题,方法在调用的时候将()去掉即可
from guizero import App, Text
# Action you would like to perform
def counter():
text.value = int(text.value) + 1
app = App("Hello world")
text = Text(app, text="1")
text.repeat(1000, counter) # Schedule call to counter() every 1000ms 函数调用不能加括号
app.display()
浙公网安备 33010602011771号