Python3 建立文件夹

# 查看当前目录的绝对路径: >>> os.path.abspath('.') '/Users/michael' # 在某个目录下建立一个新目录,首先把新目录的完整路径表示出来: >>> os.path.join('/Users/michael', 'testdir') '/Users/michael/testdir' # 而后建立一个目录: >>> os.mkdir('/Users/michae
相关文章
相关标签/搜索