摘要: 字符串format()格式化 a ='名字是:{0},年龄是:{1}‘ a.format('搞起',18) '名字是:搞起,年龄是:18' a.format('高希希',6) '名字是:高希希,年龄是:6' b='名字是:{0},年龄是:{1},{0}是个好小伙,{2}是个男孩' b.format( 阅读全文
posted @ 2020-06-13 17:43 技术人员小饭 阅读(124) 评论(0) 推荐(0)