Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的代码:
import time a = time.daylight() print(a)
结果是:
TypeError: 'int' object is not callable.
问题是什么?
time.daylight是一个数字;不要试图通过在末尾加上括号来调用它。
time.daylight