import shutil
t1 = 'bjjj'
t2 = 4455
t3 = '.txt'
t6 = print(t1+str(t2)+t3)
shutil.copy('bjjj.txt', 't6')
shutil.copy('bjjj.txt', 'bjjj4455.txt')
NOTE NOTE
I have a job file called bjjj.txt. When the program ended, I wanted it to be copied to the same name concatenated with a variable. I made immense attempts to no avail. If you put fixed bjjj4455.txt it works perfectly. But I want to increase the number 4455 +1 ...
Thank you
t1 = 'bjjj'
t2 = 4455
t3 = '.txt'
t6 = print(t1+str(t2)+t3)
shutil.copy('bjjj.txt', 't6')
shutil.copy('bjjj.txt', 'bjjj4455.txt')
NOTE NOTE
I have a job file called bjjj.txt. When the program ended, I wanted it to be copied to the same name concatenated with a variable. I made immense attempts to no avail. If you put fixed bjjj4455.txt it works perfectly. But I want to increase the number 4455 +1 ...
Thank you
buran write Feb-11-2021, 11:57 AM:
Please, use proper tags when post code, traceback, output, etc. You have been advised to do so.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. You have been advised to do so.
See BBcode help for more info.