\t'*15}" # This is incorrect>>> something = f"{'\t'*6} Weather"SyntaxError: f-stringexpression part cannot include a backslash
>>> something = f"{\'\t\'*6}
foo = "test"NameError: name 'bar' is not definedSyntaxError: f-stringexpression part cannot include a backslash'test {bar}'
编辑:看起来这个问题的答案与相同,但只有当您知道str.format因此