Python3之"IndentationError: unexpected indent"错误
来源:互联网 发布:阿里云 搭建ss 编辑:程序博客网 时间:2024/05/17 18:16
都知道python是对格式要求很严格的,写了一些python但是也没发现他严格在哪里,今天遇到了IndentationError: unexpected indent错误我才知道他是多么的严格。
我在uliPad和pycharm两个编译器中进行操作
在pycharm如果tab有错,会有提示错误。
如下例:
__author__ = 'minggxu9'if __name__ == '__main__': # when run as a script print ("徐忠明") route=856 print(route,type(route)) #打印数据和数据变量 route="hello world" print(route,type(route)) y = "green" print(y) """变量可以不申明,直接使用,还可以赋予不同类型的值 多行注释 PyCharm让生活变得更美好 """ # x = "blue"# y = "green"#表示单行注释 # z=x # print (x)
在Python时,一定要注意格式对齐,否则会报错误。
- Python3之"IndentationError: unexpected indent"错误
- Python编程错误之IndentationError: unexpected indent
- python3.4 编译时提示错误 IndentationError: unexpected indent
- python3.4 编译时提示错误 IndentationError: unexpected indent
- python错误:IndentationError: unexpected indent
- Python错误IndentationError: unexpected indent
- python常见错误:IndentationError: unexpected indent
- IndentationError: unexpected indent
- IndentationError: unexpected indent python
- IndentationError: unexpected indent python
- IndentationError: unexpected indent python
- IndentationError: unexpected indent
- IndentationError: unexpected indent python
- python:IndentationError: unexpected indent
- IndentationError: unexpected indent python
- IndentationError: unexpected indent
- IndentationError: unexpected indent
- IndentationError: unexpected indent python
- php伪静态介绍
- Ruby编程语言_Chapter02_笔记
- 上传图片
- C语言函数参数调用顺序
- Oracle GoldenGate Veridata Installation and Configuration
- Python3之"IndentationError: unexpected indent"错误
- handler/ runOnUiThread /AsyncTask
- php的类
- 基于字符设备的IIC驱动源代码
- Installing and Configuring GoldenGate Veridata Agent
- 怎样从柱参数值中获取对应的Level对象
- javascript加载解析xml文件
- Meego下一步将如何-来自meego官方主页
- android 札记三 hello world