I am learning python (python 3) and I can copy 1 file to a new directory
by doing this
import shutil
shutil.copyfile('C:/test/test.txt', 'C:/lol/test.txt')
What I am now trying to do is to copy all *.txt files from C:/ to C:/test
*.txt is a wildcard to search for all the text files on my hard drive
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…