我有以下 f 字符串:
f"Something{function(parameter)}"
Run Code Online (Sandbox Code Playgroud)
我想对该参数进行硬编码,它是一个字符串:
f"Something{function("foobar")}"
Run Code Online (Sandbox Code Playgroud)
它给了我这个错误:
SyntaxError: f-string: unmatched '('
Run Code Online (Sandbox Code Playgroud)
我该怎么做呢?