Commit 3b477572 authored by 王志伟's avatar 王志伟

change style

parent 44077383
# -*- coding: UTF-8 -*-
import pymysql
import datetime
import pandas as pd
DIRECTORY_PATH="/data2/ffm/"
......@@ -23,7 +24,6 @@ def get_data():
cursor.execute(sql)
result = cursor.fetchall()
cursor.close()
conn2db.commit()
return result
......@@ -34,7 +34,6 @@ def result2file(data):
line = str(i[0]) + "," + str(i[1]) + "\n"
f.write(line)
if __name__ == "__main__":
result = get_data()
result2file(result)
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