我正在尝试制作一个基于快速文本的曲棍球队管理游戏,但每当我参考我的一个功能时,我都会得到“预期的缩进块”.不确定我是不是很蠢,也找不到我的错误.
def startup():
print "Welcome to the Text Based Hockey League!"
print "You will be tasked with being a team's General Manager"
yourTeam = raw_input()
class tbhl:
def __init__(self):
self.teamList["Mustangs", "Wolves", "Indians", "Tigers", "Bears", "Eagles", yourTeam]
class game:
def __init__(self, homeScore, awayScore):
#games left in a team class
startup() #
tbhl = tbhl()
print tbhl.teamList[7]