# 通过:f"内容{变量}" 的格式,实现快速格式化,如下示例 print("-----------字符串快速格式化------------") name ="sunwugang" age=18 print(f"my name is {name},age is {age}") print("my name is {},age is {}".format(name,age))
标签:name,Python,age,笔记,002,print,my From: https://www.cnblogs.com/YYkun/p/17429194.html