阅读背景:

python 不同目录间的模块调用

来源:互联网 
import os
print(os.path.abspath(__file__))#abspath 返回文件的绝对路径、__file__文件的相当路径print(os.path.abspath(__file__))#abspath



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: