gpt4 book ai didi

Python 缩进错误 : unindent does not match any outer indentation level

转载 作者:太空宇宙 更新时间:2023-11-03 14:03:39 25 4
gpt4 key购买 nike

<分区>

我正在尝试更新 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

代码有什么问题?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com