参考Python文档:https://docs.python.org/3/reference/lexical_analysis.html#identifiers
变量
命名规则:以字母或下划线开头,可包含字母数字下划线(A-z,0-9,_),变量大小写敏感,并避免使用python内置函数名和关键字,防止冲突
关键字:
False | await | else | import | pass |
None | break | except | in | raise |
True | class | finally | is | return |
and | continue | for | lambda | try |
as | def | from | nonlocal | while |
assert | del | global | not | with |
async | elif | if | or | yield |
Python内置函数:
Python内置函数参考:菜鸟教程_Python内置函数
基本数据类型: