官方文档看这里 https://docs.python.org/3.5/library/os.html

 

http://www.cnblogs.com/wupeiqi/articles/5501365.html

 

os.path.exists(file) 如果file存在于当前目录下,返回True,否则返回False

os.path.abspath(file) 返回file的绝对路径

os.path.dirname(file) 返回file的上级目录名

sys.path.append(path) 添加path到环境变量

 

 

os.system(command)

def system(*args, **kwargs): # real signature unknown
    """ Execute the command in a subshell. """
    pass
View Code

相关文章: