jsonResponse = json.loads(dataString)
{'登录' :'登录' }
username_input = jsonResponse["login"]
登录
database
记录: cur.execute("SELECT * FROM users WHERE username = '?'" % username_input)
username_database = cur.fetchone()
比较执行循环
if username_input == username_database:
username_password = jsonResponse["password"]
cherrypy.log(str(username_password))
conn.commit()
但我从数据库 username_database = None