摘要: print函数之format字符串格式化方法的使用与学习笔记。 一、映射关系 (1)“映射”示例,以下通过位置举例说明: [+]Example_1: >>> print("{0}:{1}".format('name','age')) name:age [+]Example_2: >>> print( 阅读全文
posted @ 2017-03-16 23:09 myles007 阅读(2161) 评论(0) 推荐(0) 编辑