Python 获取脚本路径以及脚本所在文件夹路径2024-03-25 13:44:40 import os script_path = os.path.realpath(__file__) script_dir = os.path.dirname(script_path) 上一篇:Cocos2d-html5 笔记2: director下一篇:解决 RtlCreateActivationContext() failed 0xc000000d