山东洛馍卷大葱
Topic sourcesql直接排序( ̄(∞) ̄)
def get_score_in(low, high):
conn = sqlite3.connect(db_file)
cursor = conn.cursor()
cursor.execute('select name from user where score>=? and score<=? order by score asc', (low, high))
query_data = cursor.fetchall()
cursor.close()
conn.close()
name_list = [n[0] for n in query_data]
return name_list
- 1
Han小胖黑洲非