标签:class 替换 而不是 源代码 版本 常量 运行 int 字符
用法:
>>> x = 1 >>> print(f'{x}', f"{x}", f"""{x}""") 1 1 1 >>> print(f'{x}', f'{{x}}' , f'{{{x}}}') 1 {x} {1}
python f-string
原文地址:https://www.cnblogs.com/edhg/p/12267469.html