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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -