提问人:Asif Ahmed 提问时间:9/14/2023 最后编辑:Tim RobertsAsif Ahmed 更新时间:9/14/2023 访问量:16
是否有人在 replit.com 面临缩进问题?我在 replit 中看到缩进错误,而 pycharm 中不存在
Is anyone facing an indentation problem issue at replit.com? I am seeing an indentation error in replit which is not there in pycharm
问:
Error in console of replit:
File "main.py", line 39
for item in a_list:
^
IndentationError: unindent does not match any outer indentation level
我在 PyCharm 中尝试了相同的代码:
def mutate(a_list):
b_list = []
for item in a_list:
new_item = item * 2
b_list.append(new_item)
print(b_list)
mutate([1,2,3,5,8,13])
一切都很顺利!
答: 暂无答案
评论