python中的常见错误
2021-04-23 03:28
                         标签:declared   error   rac   中文乱码   tail   单词   lang   one   ali    名字错误:python 的关键字写错了。     现象:         无效的语法:Java 和 JS 一行结束用分号“;”Python 用的换行       缩进错误:代码中有空格,没有对齐,Python 中缩进代表下一级(分支) 第一张  第一节 第二节            Python 2.x 默认不支持中文,具体原因,等到介绍 字符编码 时给大家讲解 Python 2.x 的解释器名称是 python   * error 错误 * invalid 无效 , valid 验证 * Indentation 索引 * line行 col 列 * encoding 编码 python中的常见错误 标签:declared   error   rac   中文乱码   tail   单词   lang   one   ali    原文地址:https://www.cnblogs.com/gwl1027/p/14687827.html2.2.1名字错误
NameError: name ‘python3‘ is not defined

2.2.2语法错误

SyntaxError: invalid syntax 
2.2.3缩进错误
  
NameError: name ‘python3‘ is not defined
2.2.4中文乱码错误

SyntaxError: Non-ASCII character ‘\xe8‘ 
Python 3.x 的解释器名称是 python3 
2.2.5基础单词
* name 名字
* defined 已经定义,default 默认值 * syntax 语法
* unexpected 意外的,不期望的 * character 字符 char 
* declared 声明
* details 细节,详细信息 * ASCII 一种字符编码