摘要: 1 #-*- coding: UTF-8 -*- 2 from sys import exit 3 #作出判断选择进森林还是出海冒险 4 def start(): 5 print "Now you are on an island," 6 print "you got a lot of things,but you're lonely and bored ... 阅读全文
posted @ 2017-11-27 22:48 丁头零零 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1 #-*- coding: UTF-8 -*- 2 from sys import exit 3 #作出判断选择进森林还是出海冒险 4 def start(): 5 print "Now you are on an island," 6 print "you got a lot of things,but you're lonely and bored ... 阅读全文
posted @ 2017-11-27 22:48 丁头零零 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 这里边主要有两个关键的操作:一是split,还有一个是join。在一定程度上两者功能相反。 talk is cheap,show the code. 下面详细介绍一下split的功能。 完整的split应该是: str.split(str="",num=string.count(str))[n] 参 阅读全文
posted @ 2017-11-27 22:46 丁头零零 阅读(180) 评论(0) 推荐(0) 编辑