摘要: 字符串格式化 Python的字符串格式化有两种方式: 百分号方式、format方式 1、百分号方式 %[(name)][flags][width].[precision]typecode (name) 可选,用于选择指定的key flags 可选,可供选择的值有: + 右对齐;正数前加正好,负数前加 阅读全文
posted @ 2018-04-29 08:38 Python少年 阅读(300) 评论(0) 推荐(0) 编辑