摘要: 1 string格式化 ''' 1、PI:大写代表常量 2、多行字符串用三个引号 3、字符串格式化输出 方式:1)使用占位符 %s %d %f 2)format函数 ''' 1 PI = 3.1415926 2 3 round = PI * 4 ** 2 4 5 print(round) 6 7 p 阅读全文
posted @ 2022-03-11 12:05 万溪汇海 阅读(162) 评论(0) 推荐(0)