Skip to content

Instantly share code, notes, and snippets.

View glamourzc's full-sized avatar
🏠
Working from home

glamourzc

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am glamourzc on github.
  • I am doordy (https://keybase.io/doordy) on keybase.
  • I have a public key ASB9Pvn9pk8fGEfkyj6k207S6UBggX_6AHi1sX5u8SoY_Qo

To claim this, I am signing this object:

@glamourzc
glamourzc / dir&copy.py
Created January 6, 2019 13:34
使用python遍历文件夹复制文件
import os
import os.path
import shutil
finalPos = open("J:/SourcesDataSet/Pos.txt",'w')
for root,dirs,files in os.walk("J:/SourcesDataSet/"):
if 'Pos.txt' in files:
pos = open(root+'/Pos.txt','r')
temp = pos.readlines()
finalPos.writelines(temp)