摘要:
cocos2dx 3.7中 AppDelegate.h的class TestController;这种写法的具体意思不太明白,只能猜是类似于外部定义的东西。 阅读全文
posted @ 2015-08-21 20:13
呱呱老师
阅读(148)
评论(0)
推荐(0)
摘要:
这个获取文件路径中所在的目录。1234567In[1]:importosIn[2]:os.__file__Out[2]:'/usr/lib/python2.7/os.pyc'In[3]:os.path.dirname(os.__file__)Out[3]:'/usr/lib/python2.7' 阅读全文
posted @ 2015-08-21 10:41
呱呱老师
阅读(548)
评论(0)
推荐(0)
摘要:
用__file__ 来获得脚本所在的路径是比较方便的,但这可能得到的是一个相对路径,比如在脚本test.py中写入:#!/usr/bin/env pythonprint __file__按相对路径./test.py来执行,则打印得到的是相对路径,按绝对路径执行则得到的是绝对路径。而按用户目录来执行(... 阅读全文
posted @ 2015-08-21 10:37
呱呱老师
阅读(411)
评论(0)
推荐(0)

浙公网安备 33010602011771号