摘要: 字符串格式化 1.百分号方式 %[(name)][flags][width].[precision]typecode a = "my name is %s,age %d" % ("alex", 18) print(a) # my name is alex,age 18 * (name) 可选,用于选 阅读全文
posted @ 2017-03-22 13:44 Grisom 阅读(200) 评论(0) 推荐(0) 编辑