用Python有一段时间,后来又在用PHP写脚本,两者混用还是有点凌乱,记录下一些有用的点滴吧。
# dict输出key:value key:value … 形式: print ‘ ‘.join([str(x)+‘:‘+str(y) for x,y in dic.items()])
Python点滴
原文:http://my.oschina.net/iuranus/blog/326769