解析时Python意外的EOF
这是我的python代码。有人能告诉我它有什么问题。while 1:date=input("Example: March 21 | What is the date? ")if date=="June 21":
sd="23.5° North Latitude"if date=="March 21" | date=="September 21":
sd="0° Latitude"if date=="December 21":
sd="23.5° South Latitude"if sd:
print sd
这是发生的事情:>>> Example: March 21 | What is the date? Traceback (most recent call last):
File "C:\Users\Daniel\Desktop\Solar Declination Calculater.py", line 2, in
date=input("Example: March 21 | What is the date? ")
File "", line 0
^SyntaxError: unexpected EOF while parsing>>>