变量
声明变量
name = 'ajune'
变量赋值
name = 'ajune'
name1 = name
变量定义的规则:
变量名只能是 字母、数字或下划线的任意组合
变量名的第一个字符不能是数字
以下关键字不能声明为变量名
['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']
输入
input()将接收的内容转为string类型
可以使用int()将内容转为int型
导入getpass模块,适用于输入密码
importge