glob模塊 根據(jù)指定的字符串匹配路徑名或文件名 glob.glob(pathname, *, recursive=False) 返回匹配路徑名稱 import glob print(glob.glob('/user/xxx/home/*')) that's all