Feb-10-2021, 10:39 PM
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