摘要: 面试题 <!-- 文章内容 --> 1 Python字符串格式化中,%s和.format的主要区别是什么? 1.1、匿名tuple(推荐在参数少时用) python用一个tuple将多个值传递给模板,每个值对应一个格式符。 print ("I'm %s.I'm %d year old" % ('Va 阅读全文
posted @ 2018-03-13 17:21 九二零 阅读(131) 评论(0) 推荐(0)