文件操作 - cpubound_stackless.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/doc/uwsgi-core/tests/cpubound_stackless.py
编辑文件内容
import time import stackless def application(env, start_response): start_response( '200 OK', [ ('Content-Type','text/html') ]) #print(env) for i in range(1,100000): #print(i) yield "<h1>%s at %s</h1>\n" % (i, str(time.time())) #schedule every 2 if i % 2 == 0: stackless.schedule() print("DONE AT %d" % i)
修改文件时间
将文件时间修改为当前时间的前一年
删除文件