 |
|
lazysoft
V2EX member #207499, joined on 2016-12-25 09:51:43 +08:00
|
 |
Per lazysoft's settings, the topics list is hidden |
Deals info, including closed deals, is not hidden
lazysoft's recent replies
不找了,很抱歉,因社区同仁告诉我这里不能发这里帖子,
贴不了图额。。。
if request.method == 'POST':
form = request.form
username = form.get('username')
password = form.get('password')
pool = SingletonDBPool()
con = pool.connect()
cur = con.cursor()
sql = "select * from users where username = '%s' and passwords = '%s'" % (username,password)
print(sql)
cur.execute(sql)
result = cur.fetchone()
con.commit()
con.close()
print(result)