```python
from flask import Flask,request
import get
from wsgiref.simple_server import make_server
from concurrent.futures import ThreadPoolExecutor
app = Flask(__name__)
executor = ThreadPoolExecutor(2)
@
app.route('/wx', methods=["GET", "POST"])
def getinput():
if (1):
executor.submit(get.yiqing.main()) # 异步内容
return "success" #不 return 啊 被上面那个异步阻塞了
if __name__ == '__main__':
server = make_server('', 8099, app)
server.serve_forever()
```
看着好别扭啊,我给格式化了一下,是这样吧