摘要:
import StringIO as SIOs1 = "Hello"print id(s1)s2 = "Hello" + s1print id(s2)sp = SIO.StringIO()sp.write("Hello")print sp.getvalue()print id(sp)sp.write("Leon")print sp.getvalue()print id(sp)exit()主要进行字符串数据缓存,以便循环利用 阅读全文
posted @ 2013-04-09 13:56
践道者
阅读(688)
评论(0)
推荐(0)