这里是我的代码的Python 2.7未知的语法错误
hrs = raw_input("Enter Hours:")
h = float(hrs)
rate = raw_input("Enter Rate:")
r = float(rate)
if hrs <= 40
pay = hrs * rate
print pay
else hrs > 40
pay = hrs * 15.75
print pay
以下是错误消息
486406789.415.py", line 6
if hrs <= 40
^
SyntaxError: invalid syntax
[if语句在条件后需要冒号(:))(https://docs.python.org/3/tutorial/controlflow.html# if语句) –