摘要: 阅读全文
posted @ 2016-09-11 14:56 巫妖207 阅读(309) 评论(1) 推荐(0)
摘要: 阅读全文
posted @ 2016-09-11 14:52 巫妖207 阅读(87) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-09-11 14:43 巫妖207 阅读(189) 评论(0) 推荐(0)
摘要: from sys import argv script,filename = argv print "We're going to erase %r."% filenameprint "If you don't want that,hit CTRL-C (^C)."print "If you wan 阅读全文
posted @ 2016-08-28 19:26 巫妖207 阅读(164) 评论(0) 推荐(0)
摘要: 代码: print("I will now count my chickens:") print("hens", 25+30/6)print("Roosters", 100-25*3%4)print("I will count the eggs:")print(3+2+1-5+4%2-1/4+6)p 阅读全文
posted @ 2016-08-28 01:13 巫妖207 阅读(185) 评论(0) 推荐(0)
摘要: 代码: print("I could have code like this.") # and the commnt after is ignored.# You can also use a comment to "disable" or comment a piece of code:# pri 阅读全文
posted @ 2016-08-28 01:11 巫妖207 阅读(166) 评论(0) 推荐(0)
摘要: 代码: print("Hello world.")print("Hello again.")print("I like typing this.")print("This is fun.")print('Yay! Printing.') # 单引号跟双引号的效果一样的~print("I'd rath 阅读全文
posted @ 2016-08-28 01:07 巫妖207 阅读(145) 评论(0) 推荐(0)
摘要: # 代码如下: usr_name = input("")script = input("")prompt = '> 'print("hi %s,i'm the %s script."% (usr_name,script))print("i'd like to ask u some questions 阅读全文
posted @ 2016-08-27 21:34 巫妖207 阅读(125) 评论(0) 推荐(0)