第18集格式化输出

70 阅读1分钟

格式出输出
1、使用%占位符(不推荐)
2、format函数(推荐)
3、f前缀字符串(仅限python3.6版本以上) Note:print("tmp_1---{}".format),大括号相当于占位了。