SHARE
TWEET

Untitled

a guest Feb 20th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. data = loadtxt("1.txt", float)
  2.    
  3. >>> '{0}.txt'.format(1)
  4. '1.txt'
  5.    
  6. for i in range(50):
  7.     data = loadtxt('{0}.txt'.format(i + 1), float)
  8.    
  9. for i in range(1,51):
  10.    data = loadtxt('{0}.txt'.format(i),float)
  11.    #process data here.
  12.    
  13. datafile = '%d.txt' % (i)
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