Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用python 27,代码是
print "HI".
我用了
C:\Python27\python.exe -i "$(FULL_CURRENT_PATH)"
让notepad ++与python一起工作,如果这有所作为。
您在字符串之外有一个句号:
print "HI". # -----^
那不是合法的Python:
>>> print "HI". File "<stdin>", line 1 print "HI". ^ SyntaxError: invalid syntax
删除它或将其移动到字符串中:
print "HI."