摘要:
1 # -*-coding:utf-8 -*- 2 print ("how old are you?"),# python 3.0版本开始已经去掉了raw_input函数,直接用input函数就可以了 3 age = input("old?") 4 print ("how tall are you?"), 5 height = int(float(input())) #假如输... 阅读全文
摘要:
1 # -*-coding:utf-8 -*- 2 print ("how old are you?"), 3 age = input() # python 3.0版本开始已经去掉了raw_input函数,直接用input函数就可以了 4 print ("how tall are you?"), 5 height = int(float(input())) #假如输入的是小数点... 阅读全文
摘要:
1 ''' 2 tabby_cat = "\tI'm tabbed in." 3 persian_cat = "I'm split\non a line." 4 backslash_cat = "I'm \\ a \\ cat." 5 6 fat_cat = """ 7 I'll do a list: 8 \t* catfood 9 \t* Fishies 10 \... 阅读全文