我是 python 新手。我有Syntax Error: invalid syntax & object module is not callable
谢谢你的帮助
现货.py
class Spot(object):
isBunny = bool()
UP = 0
SLEEP = 2
def __init__(self, newIsBunny):
self.isBunny = newIsBunny
self.nextCycle = self.UP
测试.py
import Spot
i=2
if i==Spot.SLEEP
a=Spot(True)
print a.isBunny