SyntaxError: unexpected indent
时间: 2023-10-16 21:07:03 浏览: 124
Syntax Error
"SyntaxError: unexpected indent"意味着在代码中出现了意外的缩进错误。这个错误通常是由于在代码的某一行前多了一个缩进或者在不适当的地方出现了缩进导致的。为了解决这个问题,你可以重新检查一下代码,确保每行的缩进都是正确的,并且在需要缩进的地方使用正确的缩进方式。另外,也要注意在使用冒号(:)后面需要缩进的代码块时,确保正确缩进。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [让你爱上Python编程-之第1章 出现错误问题的原因](https://blog.csdn.net/ydr888/article/details/105792959)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [python常见错误.txt](https://download.csdn.net/download/qq_43966957/87896394)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Python报错:IndentationError: unexpected indent问题的解决办法及原因](https://blog.csdn.net/hj960511/article/details/122114908)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文