摘要: 字符串格式化: 前面说过一种字符串格式化方法,来复习一下: >>> print('His name is %s', 'jeff') His name is %s jeff 其实格式化方法不止一种: >>> print('{0} , {1}'.format('alex','33')) alex , 3 阅读全文
posted @ 2016-01-31 00:09 黄小墨 阅读(456) 评论(0) 推荐(0) 编辑