Python之路,Day01-02变量定义及注释
变量定义的规则
变量名只能是 字母、数字或下划线的任意组合。
变量名的第一个字符不能是数字。
以下关键字不能声明为变量名。
['and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'exec', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'not', 'or', 'pass', 'print', 'raise', 'return', 'try', 'while', 'with', 'yield']
注释
当行注释:# 被注释内容
多行注释:""" 被注释内容 """
# 仅作记录。