刚接触Python,装上一个Python3.0的版本。在path下加入C:\Python30(我是直接装置c:\下的)。
开始就来个问题,
输入
>>> print "he"
直接给我报错,这个是怎么回事?
Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************
IDLE 3.0
>>> print "he"
SyntaxError: invalid syntax (<pyshell#0>, line 1)
>>>
谁帮忙能给我解释一下啊?
Python3.0打印功能使用问题
一位初学者在安装Python3.0后尝试使用print命令时遇到语法错误。此文章详细记录了错误信息及环境配置,寻求解决方法。
199

被折叠的 条评论
为什么被折叠?



