作者:爱吹泡泡de鱼_436 | 来源:互联网 | 2023-07-02 11:03
app.route(command,methods[POST])defcommand():bcmdbytes.fromhex(request.form[cmd])print(bc
@app.route('/command', methods=['POST'])
def command():bcmd = bytes.fromhex(request.form['cmd'])print(bcmd)return Response('OK', mimetype='text/plain')
bytes.fromhex(request.form['cmd']):从表单中得到数据并且转为字节型