저는 Python을 처음 접했고 스크립트를 가져 오기 위해 노력하고 있습니다. 따라서 실행할 수 있고 게이트 밖으로 바로 벗어날 수 있습니다. 나는 유효하지 않은 구문이 어디에 있는지, 어떻게 고쳐야하는지 잘 모르겠습니다.Python에서 알 수없는 구문 오류
Traceback (most recent call last):
** IDLE Internal Exception:
File "C:\Python34\lib\idlelib\run.py", line 353, in runcode
exec(code, self.locals)
File "C:\Users\Admin\Desktop\hangouts\run.py", line 1, in <module>
import hangouts.py
File "C:\Users\Admin\Desktop\hangouts\hangouts.py", line 380
print "[%s] %s" % (os.path.basename(__file__), unicode(message).encode('utf8'))
^
SyntaxError: invalid syntax
나 자신을 기분 유사한이 있었다 곳 파이썬 3는 말하고있다. 이 도구를 실행할 수 있도록 권장 버전이 있습니까? – rfoo
답변 됨 [5 년 전] (http://stackoverflow.com/questions/826948/syntax-error-on-print-with-python-3) –