from one file making multiple copies of a file with different names by using python -
from one file making multiple copies of a file with different names by using python -
i want create 10 copies of file named "as-1.txt" , want names of copied file "as-2.txt" , "as-3.txt" , on. shutil .copyfile() not working in iterative status loops
import subprocess in range(2,10): subprocess.call(['cp', 'as-1.txt', 'as-%d.txt' % i])
python python-2.7 python-3.x
Comments
Post a Comment