glob模块 根据指定的字符串匹配路径名或文件名 glob.glob(pathname, *, recursive=False) 返回匹配路径名称 import glob print(glob.glob('/user/xxx/home/*')) that's all