摘要: 简单的用户交互例: death_age = 80 name = input("your name:") age = input("your age:") #input 接受的所有数据都是字符串,即便你输入的是数字,但依然会被当成字符串来处理 print( type(age) ) #int integ 阅读全文
posted @ 2018-01-17 18:53 Alon_x 阅读(123) 评论(0) 推荐(0)
摘要: 变量: 变量是为了存储程序运算过程中的一些中间结果,为了方便日后调用。 例: print ("Hello World !") print ("Alon") print ("alon_x") name = ("Alon_x") x=3 y=4 z=x*y print("x*y", z) print(" 阅读全文
posted @ 2018-01-17 11:46 Alon_x 阅读(92) 评论(0) 推荐(0)