2019年3月11日 星期一

python copy file and rename


 
 
 
 
 
#copy file (src) and move to the destination (dst)
from shutil import copyfile
copyfile(src, dst)

ref:
https://stackoverflow.com/questions/123198/how-do-i-copy-a-file-in-python