1.安装两个版本的Python(Python2.7和Python3.5)Python3X以上支持中文
2.安装pycharm解释编辑器需要jdk1.8以上
①第一个程序 helloworld
print("helloworld")
②定义变量 格式化打印
name = input("name:")
age = input("age:")
sex = input("sex:")
info = ''' ---- info is {_name}----
Name = {_name}
Age = {_age}
Sex = {_sex}
'''.format(_name = name
_age = age
_sex = sex)
print(info)
③判断语句 if i > 3 :
print("")