📜  在 python 代码示例中查找文件

📅  最后修改于: 2022-03-11 14:45:26.708000             🧑  作者: Mango

代码示例1
import os

def find(name, path):
    for root, dirs, files in os.walk(path):
        if name in files:
            return os.path.join(root, name)