搭建python运行环境
- 下载python安装包
- 配置好环境变量,可参考此链接
第一个helloworld
#单行注释 '''多行注释''' """多行注释""" print("hello world!")
练习
add_age = 1; name = input("your name:"); age = input("your age:"); print("name is "+name+";age is "+str(int(age)+add_age));
true_num = 67; input_num = int(input(">>:")); if true_num==input_num: print('true'); elif input_num>true_num: print('try smaller') else: print('try bigger');