摘要: 方式一:使用占位符 % 常用占位符:% s (s = string 字符串) % d (d = digit 整数(十进制)) % f ( f = float 浮点数) 方式二:format()函数(推荐使用) format()函数通过传入的字符串作为参数,并使用{}大括号作为占位符 format(a 阅读全文
posted @ 2018-09-25 19:22 初释衷年 阅读(213) 评论(0) 推荐(0) 编辑