括号中带有语音标记的python语法错误

括号中带有语音标记的python语法错误,python,Python,当我让python解释器突出显示这些行中的最后一个speechmark时,我正在测试我的代码 q=(w-273.15) print(str(q)"is the speed of sound at") 使用Python 3.6,我们可以实现以下目标: q = (w - 273.15) print(f"{q} is the speed of sound at") 这些被称为f字符串。它们允许在大括号中添加Python表达式。在str(q)和字符串文本之间需要逗号或加号。 q = (w - 273

当我让python解释器突出显示这些行中的最后一个speechmark时,我正在测试我的代码

q=(w-273.15)
print(str(q)"is the speed of sound at")

使用Python 3.6,我们可以实现以下目标:

q = (w - 273.15)
print(f"{q} is the speed of sound at")

这些被称为f字符串。它们允许在大括号中添加Python表达式。

str(q)
和字符串文本之间需要逗号或加号。
q = (w - 273.15)
print(f"{q} is the speed of sound at")