Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. outfile = open('outfile.txt','w')
  2. DataIn = loadtxt('input.txt')
  3. s = DataIn.std()
  4. m = DataIn.mean()
  5. outfile.write(s + 'n')
  6. outfile.write(m + 'n')
  7. outfile.close()
  8.  
  9. import numpy
  10. from numpy import *
  11. DataIn = loadtxt('input.txt')
  12. s = DataIn.std()
  13. print s
  14.  
  15. outfile.write(str(s) + 'n')
  16. outfile.write(str(m) + 'n')
  17.  
  18. outfile.write(str(s) + 'n')
  19.  
  20. outfile.write( "{0}n".format(s) )
  21.  
  22. print str(s)
  23.  
  24. def __add__(self, x):
  25. if isinstance(x, str):
  26. return str(self) + x
  27. ...
  28.  
  29. outfile.write(s + 'n')
  30. outfile.write(m + 'n')
  31.  
  32. outfile.write('{:1.4f}n'.format(s))
  33. outfile.write('{:1.4f}n'.format(m))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement