def getfile(dir_file):
    baseUrl = dir_file
    fileList = []
    list = os.listdir(baseUrl)
     
    for i in range (0, len(list)):
        path = os.path.join(baseUrl,list[i])
        if os.path.isfile(path):
            fileList.append(list[i])
        else:
            pass
    return fileList

 

相关文章:

  • 2021-10-21
猜你喜欢
  • 2022-12-23
  • 2022-01-08
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案