python if语句显示错误

时间:2018-03-16 15:57:19

标签: python python-2.7

请帮助我,我无法找到为什么我的python代码显示错误

if (temp == "")

错误是:

if (temp == "")
                  ^
SyntaxError: invalid syntax

1 个答案:

答案 0 :(得分:1)

您错过了:。将其更改为if temp == "":