Commit afc0b154 authored by 张彦钊's avatar 张彦钊

add print

parent 5b39ddf3
...@@ -138,9 +138,9 @@ def merge_score(x_list, score_df): ...@@ -138,9 +138,9 @@ def merge_score(x_list, score_df):
sql = "select score from biz_feed_diary_score where diary_id in {};".format(x_list) sql = "select score from biz_feed_diary_score where diary_id in {};".format(x_list)
cursor.execute(sql) cursor.execute(sql)
result = cursor.fetchall() result = cursor.fetchall()
score_df = pd.DataFrame(list(result)) score = pd.DataFrame(list(result))
print("数据库日记表前十行") print("数据库日记表前十行")
score_list = score_df[0].values.tolist() score_list = score[0].values.tolist()
db.close() db.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment