-2

现在我的程序说: unindent does not match any other indentation level。该部分如下所示:

if wait2 == "Four":
                print("You Have Waited For Four Months")
                money += (population * 6)
                time.sleep(1.5)
                print("From The Rent You Now Have $" + str(money) + " In Total")
4

2 回答 2

2

您缺少)此行的结尾,您可以通过添加右括号或删除左括号来修复它:

population -= (random.randint(1, 3))
                                   ^
                                   |
于 2013-05-28T11:24:27.590 回答
0

在说的那行之前

if wait2 == "Four":

你有一个)失踪

population -= (random.randint(1, 3)
于 2013-05-28T11:25:17.943 回答