pathlib 是它的替代品,在 os.path 上的基础上进行了封装,实现了路径的对象 ... p.iterdir() # 相当于os.listdir p.glob('*') # 相当于os.listdir, ...
確定! 回上一頁