Dic*_*ful 2 python curly-braces python-3.x f-string
有什么办法可以将 {} 显示为 f 字符串的一部分,因为它在 f 字符串中具有特殊含义。换句话说:
如果运行print(f"hello world {}"),我想要这样的结果hello world {}
我尝试的解决方案是:print(f"hello world \{\}"). 但它没有用。
非常感谢您的帮助
| 归档时间: |
|
| 查看次数: |
43 次 |
| 最近记录: |