📅  最后修改于: 2022-03-11 14:46:36.996000             🧑  作者: Mango
代码示例6
from os import listdir
from os.path import isfile, join
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]