摘要: Python的字符串格式化有两种方式: 百分号方式、format方式 一、format方式 test = 'my name is {},age {}' v = test.format('alex', 19) print(v) # 输出:my name is alex,age 19 test = 'n 阅读全文
posted @ 2019-08-22 17:52 五彩斑斓的黑~ 阅读(48) 评论(0) 推荐(0)