【变量】
1、变量命名
- 只能包含字母、数字和下划线,但不能以数字开头
- 变量名不能包含空格
- 不能使用Python关键字和函数名作为变量名
建议使用小写字母命名变量,并且简单明显,下面我们看一下变量的使用
def print_hi():
# 1、在第一次输入
message = "Hello Python world!"
print(message)
# Press the green button in the gutter to run the script.
if __name__ == '__main__'