create_project.py报错问题,建议用回python2.7

时间:2022-02-13 08:20:44

d:\DevTool\cocos2d-x-2.2.2\cocos2d-x-2.2.2\tools\project-creator\create_project.py 报错

d:\DevTool\cocos2d-x-2.2.\cocos2d-x-2.2.\tools\project-creator>python create_p
roject.py -project HelloWorld -package org.HelloWorld.game
File "create_project.py", line
print "Usage: create_project.py -project PROJECT_NAME -package PACKAGE_NAME
-language PROGRAMING_LANGUAGE" ^
SyntaxError: invalid syntax

原因,装的是python 3.3.4。

3.0之前python语法是:print 'hello'

3.0开始是:print('hello')