code

import os
import shutil

pwd=os.getcwd()

for i in os.listdir(pwd):
    d=os.path.join(pwd,i)
    if(os.path.isdir(d)):
        for j in os.listdir(d):
            f=os.path.join(d,j)
            if("文字" in j or "python" in j.lower()):
                shutil.move(f,pwd)

 

 

 

 

 

 

 

 

 

相关文章:

  • 2022-12-23
  • 2022-01-06
  • 2021-12-06
  • 2022-02-14
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-11-11
猜你喜欢
  • 2021-04-08
  • 2021-10-29
  • 2021-08-04
  • 2022-12-23
  • 2021-06-02
  • 2021-11-19
相关资源
相似解决方案