“bool”对象不是callab

2024-10-01 00:23:31 发布

您现在位置:Python中文网/ 问答频道 /正文

Traceback (most recent call last):
File "C:\Python\ZombieGameImages\ZombielandI_NLoo.py", line 27, in <module>
gm.over(True)
TypeError: 'bool' object is not callable

if gm.time<1: #function that causes error
   gm.over(True)

当我尝试使用if时,会出现上述错误总经理时间;在我的程序中是1。 我在学校学习Python,所以对Python还是个新手。 帮忙吗?在


Tags: pytruemostiflinecallfileover