我想写一些尽可能简单的东西
"{}MESSAGE{}".format("\t"*15, "\t"*15)
使用
f"{'\t'*15}MESSAGE{'\t'*15}" # This is incorrect
但是我收到了以下错误:
>>> something = f"{'\t'*6} Weather"
File "<stdin>", line 1
SyntaxError: f-string expression part cannot include a backslash
>>> something = f"{\'\t\'*6} Weather"
File "<stdin>", line 1
SyntaxError: f-string expression part cannot include a backslash
我应该怎么做?