摘要:
# 1.回顾文件递归遍历. 默写一遍.# 入口在: 当文件是个文件夹的时候# 出口在: 文件是一个文件 import os def func(path,n=0): path_list = os.listdir(path) #打开文件夹,查看当前目录的文件 for name in path_list: #遍历path路径下所有文件名 abs_path = os.path.join(path,name 阅读全文
posted @ 2019-08-15 16:10
陪伴is最长情的告白
阅读(298)
评论(0)
推荐(0)

浙公网安备 33010602011771号