day01——初识Python
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("")
posted on 2018-01-22 16:15 bingpo123455 阅读(68) 评论(0) 收藏 举报
浙公网安备 33010602011771号