pathlib 是它的替代品,在 os.path 上的基础上进行了封装,实现了路径的对象 ... p = Path(r'd:\test\11\22') p.mkdir(exist_ok=True) # 创建文件 ...
確定! 回上一頁