小编big*_*ter的帖子

Python,期望一个缩进块?一个复杂因素

我正在尝试制作一个基于快速文本的曲棍球队管理游戏,但每当我参考我的一个功能时,我都会得到"预期的缩进块".不确定我是不是很蠢,也找不到我的错误.

    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() #<-The line that the error points to
tbhl = tbhl()
print tbhl.teamList[7]
Run Code Online (Sandbox Code Playgroud)

python function

3
推荐指数
1
解决办法
83
查看次数

如何在C#中将2D数组打印到控制台

我没有任何代码,但我确实想知道如何做到这一点.如果重要的话,我会使用visual studio 2010 C#.

谢谢

贾森

c# console-application multidimensional-array

-1
推荐指数
2
解决办法
3万
查看次数