个人理解字符串格式化 可以在" " 或者 ’ ’ 内直接使用变量带来的值 f-Strings python 最新的字符串格式化语法 name = 'lucy' age = 14 info = f'Her name is {name}, her age is {age}.' print(info) => Her name is lucy, her age is 14. 前几代版本 %格式化 str.format() 来源:CSDN作者:我只是个小白白链接:https://blog.csdn.net/qq_35224240/article/details/91475023 标签 her