import os


def listdirs(base):
    for line in os.listdir(base):
        fullpath = os.path.join(base,line)
        if os.path.isdir(fullpath):
            listdirs(fullpath)
        elif os.path.isfile(fullpath):
            print fullpath

base = r'C:\Program Files\SogouInput\Components'
listdirs(base)
    

 

相关文章:

  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2021-09-03
  • 2022-12-23
相关资源
相似解决方案