1、错误描述
>>> import time;
>>> time.altzone();
Traceback (most recent call last):
File "<pyshell#14>", line 1, in <module>
time.altzone();
TypeError: 'int' object is not callable
2、错误原因
time.altzone返回格林威治西部的夏令时地区的偏移秒数,直接返回秒数,不需要添加小括号
3、解决办法
time.altzone
>>> import time;
>>> time.altzone();
Traceback (most recent call last):
File "<pyshell#14>", line 1, in <module>
time.altzone();
TypeError: 'int' object is not callable
>>> time.altzone
-32400
>>>