📜  f-string 打印 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:57.083000             🧑  作者: Mango

代码示例1
f_string = f'My Name is {name} and my age is {age}'

print(f_string)
print(F'My Name is {name} and my age is {age}')  # f and F are same