2

【笔记】Python3格式化输出时转义大括号

 11 months ago
source link: https://loli.fj.cn/2023/05/17/Python3%E6%A0%BC%E5%BC%8F%E5%8C%96%E8%BE%93%E5%87%BA%E6%97%B6%E8%BD%AC%E4%B9%89%E5%A4%A7%E6%8B%AC%E5%8F%B7/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

【笔记】Python3格式化输出时转义大括号

2023-05-17

Python3格式化输出时转义大括号

转义大括号

  • 通过双大括号转义大括号而不是通过\

{{`:转义`{` > `}}:转义}

print(f"{{}}")

CSDN——liyuanchao_blog


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK