Commit 126a86ed authored by 张彦钊's avatar 张彦钊

add print for test

parent b35c02f4
......@@ -83,7 +83,9 @@ def con_sql(sql):
cursor = db.cursor()
cursor.execute(sql)
result = cursor.fetchall()
print("成功从数据库获取数据")
df = pd.DataFrame(list(result)).dropna()
print("数据转化df成功")
db.close()
return df
......
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