This repository has been archived on 2024-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
mathdeptv2/工具v4/备注信息收集.py

19 lines
619 B
Python

from flask import Flask, render_template, request
from database_tools_2 import *
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def index():
if request.method == 'POST':
text1 = request.form['text1']
text2 = request.form['text2']
category = request.form['category']
AppendTextFile(f"{text1.zfill(6)}\n({GetDate()}{category}){RefinePunctuations(text2)}\n","临时文件/备注收集.txt")
return "备注收集完成, 感谢支持数据库建设"
return render_template('remarkindex.html')
if __name__ == '__main__':
app.run(debug=True)