python 示例代码2

示例2:变量赋值,打印拼接(var.py)

变量定义的规则:

变量名只能是字母、数字或下划线的任意组合

变量名的第一个字符不能是数字

以下关键字不能声明为变量名

['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']

posted @ 2019-11-21 16:04  Ranxf  阅读(259)  评论(0编辑  收藏  举报