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

d:\DevTool\cocos2d-x-2.2.2\cocos2d-x-2.2.2\tools\project-creator>python create_p
roject.py -project HelloWorld -package org.HelloWorld.game
  File "create_project.py", line 27
    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')

posted on 2014-02-18 17:44  凌度  阅读(1707)  评论(0编辑  收藏  举报