【发布时间】:2021-04-05 08:06:05
【问题描述】:
我在学习 Python 中的字符串格式化运算符时遇到了这段代码:
print('%(language)s has %(number)03d quote types.'%\
{"language":"Python", "number":2})
这段代码中的“\”代表什么?
【问题讨论】:
-
是不必要的续行符。
标签: python python-3.x string string-formatting