摘要: https://www.cnblogs.com/longyuu/p/14695553.html python格式化字符串有三种方式: 1、百分号形式(%) :默认右对齐 。 "-"表示左对齐 常用的类型码: s -->字符串 d >数字 f >浮点数 1)字符 %s 2)整数 %d 3)小数 %f 阅读全文
posted @ 2020-04-02 16:52 昱成 阅读(542) 评论(0) 推荐(0) 编辑