This article introduces python batch production of 100,000 access user code sharing
#-*- conding:utf-8 -*- #version:python 2.7.10 import sys import os import time def User(): txt = open('e:/python/pytest/user.txt','w') now = time.time() for i in range(1000000): txt.write("user%s time=%s\n" %((i+1),time.time()-now)) txt.close User()
The above is the detailed content of Python mass production code sharing for 100,000 access users. For more information, please follow other related articles on the PHP Chinese website!