#-*- 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()
时间: 2024-10-18 07:22:28