Fri Apr 14 10:59:00 UTC 2023 inscode

上级 e50aa8d9
print('欢迎来到 InsCode')
print()
\ No newline at end of file
from flask import Flask, request
app = Flask(__name__)
@app.route('/api', methods=['POST'])
def api():
data = request.get_json()
# 处理接收到的data数据
response_data = {"result": "success", "data": data}
return response_data
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册