【tornado】11.tornado异步

回调函数实现异步 import time import threading def timeconsuming(callback): def run(cb): print("开始处理耗时程序") time.sleep(5) print("耗时程序处理完毕") cb("【耗时程序已经处理完,处理结果是ok】") # 将程序运行
相关文章
相关标签/搜索