Posted by torhu Thu 22nd Mar 2007 08:27 - Syntax is None/text - 42 views
Download | New Post | Modify | Hide line numbers
  1. #lines = 1000*1000
  2. lines = 1000*1000*3
  3.  
  4. f = open(r"test.txt", "w")
  5. for x in range(lines):
  6.     f.write("".join([str(x) * 10, "\n"]))
  7.  
  8. f.close()
  9.  

PermaLink to this entry https://pastebin.co.uk/12134
Posted by torhu Thu 22nd Mar 2007 08:27 - Syntax is None/text - 42 views
Download | New Post | Modify | Hide line numbers

 

Comments: 0