python将目录切换为脚本所在目录

os.chdir(os.path.abspath(os.path.dirname(sys.argv[0])))

posted @ 2017-12-29 11:01  张不正  阅读(2521)  评论(0编辑  收藏  举报
返回顶部