2
當在下面輸入非常簡單的腳本時,我在Python上收到消息「SyntaxError:unexpected EOF」。我做錯了什麼,這個消息是什麼意思?非常感謝。在簡單python print()方法上的「SyntaxError:解析時出現意外的EOF」
c = 5
d = c*c
print("the type of d is"+ str(type(d))
當在下面輸入非常簡單的腳本時,我在Python上收到消息「SyntaxError:unexpected EOF」。我做錯了什麼,這個消息是什麼意思?非常感謝。在簡單python print()方法上的「SyntaxError:解析時出現意外的EOF」
c = 5
d = c*c
print("the type of d is"+ str(type(d))
您必須在最後加上)
!
是!任何體面的文本編輯器都會幫助您發現! – Johnsyweb 2012-04-25 10:26:41