小白python疑难|IndentationError: unexpected indent
2019-02-04 21:23
281 查看
python
学习python,出现了第一个错误。
File “<pyshell#113>”, line 2
thistuple = (“apple”, “banana”, “cherry”)
^
IndentationError: unexpected indent
解决方法:把变量“thistuple”前面的空格去掉即可。因为python的缩进规则比较严格,所以不要随便加空格缩进。
下图正常运行。
相关文章推荐
- python文件在不同系统拷贝后的IndentationError(unexpected indent)问题
- [Python] example-fifteen IndentationError: unexpected indent
- Python3之"IndentationError: unexpected indent"错误
- python:IndentationError: unexpected indent 问题解决 图文说明
- IndentationError: unexpected indent python
- python错误:IndentationError: unexpected indent
- [每日一记] Python报错 IndentationError: unexpected indent
- 【python tip】IndentationError: unexpected indent
- Python错误:IndentationError: unexpected indent
- notepad++回车导致python IndentationError: unexpected indent
- IndentationError: unexpected indent python
- IndentationError: unexpected indent python
- IndentationError: unexpected indent python
- Python脚本运行出现语法错误:IndentationError:unexpected indent
- python :脚本运行出现语法错误:IndentationError:unexpected indent(缩进问题)
- IndentationError: unexpected indent python
- Python脚本运行出现语法错误:IndentationError:unexpected indent
- Python的IndentationError: unexpected indent
- 【python异常记录】之IndentationError: unexpected indent
- Python编译时提示错误 IndentationError: unexpected indent