You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
387 B
19 lines
387 B
|
1 week ago
|
import flask
|
||
|
|
from flask import render_template
|
||
|
|
from flask import Flask
|
||
|
|
|
||
|
|
app = Flask(__name__)
|
||
|
|
|
||
|
|
|
||
|
|
@app.route('/add', methods=['POST'])
|
||
|
|
def add_quan():
|
||
|
|
quan_str = flask.request.values.get('quan')
|
||
|
|
quan_list = [q for q in quan_str.split('\n') if len(q) != 0]
|
||
|
|
print(quan_list)
|
||
|
|
|
||
|
|
return '完成'
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
app.run(host='0.0.0.0', port='10086', debug=True)
|