python批量生产10万接入用户代码分享
来源:动视网
责编:小采
时间:2020-11-27 14:25:44
python批量生产10万接入用户代码分享
python批量生产10万接入用户代码分享:这篇文章介绍python批量生产10万接入用户代码分享#-*- conding:utf-8 -*- #version:python 2.7.10 import sys import os import time def User(): txt = open('e:/python/pytest/user.txt','
导读python批量生产10万接入用户代码分享:这篇文章介绍python批量生产10万接入用户代码分享#-*- conding:utf-8 -*- #version:python 2.7.10 import sys import os import time def User(): txt = open('e:/python/pytest/user.txt','

这篇文章介绍python批量生产10万接入用户代码分享
#-*- 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
" %((i+1),time.time()-now))
txt.close
User()
python批量生产10万接入用户代码分享
python批量生产10万接入用户代码分享:这篇文章介绍python批量生产10万接入用户代码分享#-*- conding:utf-8 -*- #version:python 2.7.10 import sys import os import time def User(): txt = open('e:/python/pytest/user.txt','