os.getcwd() sys.path 返回的是运行脚本的绝对路径sys.path,os.path.realpath(__file__)返回的是绝对路径+文件名。但是,比如你想在fir目录下的fir.py调用sec目录下 ...
確定! 回上一頁