Python点滴

时间:2014-10-11 15:42:45   收藏:0   阅读:202

用Python有一段时间,后来又在用PHP写脚本,两者混用还是有点凌乱,记录下一些有用的点滴吧。

# dict输出key:value key:value … 形式:
print ‘ ‘.join([str(x)+‘:‘+str(y) for x,y in dic.items()])


评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!