我正在尝试更新 Python 中的一个字典值。我尝试通过从值中减去3来更新字典中的值。
我遇到了如下错误:
代码存在什么问题?
if buildings == 1:
workpower -= 3
if workpower >= 0:
farmplace1 = int(input("where do you want it?"))
farmplace2 = int(input("where do you want it?"))
board[farmplace1][farmplace2] = "F"
my_dict['d'] -= 3;
我遇到了如下错误:
IndentationError: unindent does not match any outer indentation level
代码存在什么问题?