Skip to main content
 首页 » 编程设计

python之"SyntaxError: unexpected EOF while parsing"简单的 python print() 方法

2025年05月04日14zhengyun_ustc

在键入下面非常简单的脚本时,我在 Python 上收到消息“SyntaxError: unexpected EOF”。我做错了什么,这条消息是什么意思?非常感谢。

c = 5 
d = c*c 
 
print("the type of d is"+ str(type(d)) 

请您参考如下方法:

你必须在最后添加)!