import os
def find_file_path(json_path,json_nanme):
for root, dirs, files in os.walk(json_path, topdown=False):
for name in files:
if name == json_nanme:
# return os.path.join(root, name)
with open(os.path.join(root, name), 'r+', encoding='utf-8') as f:
return f.read()
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)