标签:python
#-*- 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()本文出自 “李义杰” 博客,请务必保留此出处http://lyjbog.blog.51cto.com/4317657/1904143
标签:python
原文地址:http://lyjbog.blog.51cto.com/4317657/1904143