daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2.  
  3. a = 1
  4. for i in os.listdir('documents location path'):
  5.  
  6.     dosya, uzantı = os.path.splitext('{}'.format(i))
  7.     dosya = 'One_'+str(a)+''
  8.     print(dosya)
  9.     a+=1
  10.     os.rename(i,dosya+uzantı)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top