在格式化字符串文字(f-string(的BNF规则中:
f_string ::= (literal_char | "{{" | "}}" | replacement_field)*
...
literal_char ::= <any code point except "{", "}" or NULL>
它对NULL的具体含义是什么?
看起来f' '
是有效的。
允许的代码点是any code point except "{", "}" or NULL
。
字符串f"