该系统服务器上的部分代码如下:
import sqlite3
from flask import Flask,render_template, request
DATABASE = 'data/data.db'
app = Flask(__name__)
@app.route("/")
def index():
#代码略
@app.route("/input")
def add_data():
id = int(request.args.get('id'))
tem = float(request.args.get('val'))
db = sqlite3.connect(DATABASE)
cur = db.cursor()
cur.execute("INSERT INTO sensor(sensor,sensorvalue) VALUES(%d,%f)" %(id, ____) )
_________________
cur.close()
db.close()
#代码略
if __name__ == "__main__":
app.run(host="10.8.251.173", port=8080)
请回答下列问题: