19 lines
418 B
Python
19 lines
418 B
Python
|
|
import pymysql
|
||
|
|
|
||
|
|
conn = pymysql.connect(
|
||
|
|
host="localhost", user="root", password="1234", database="qtrade_backtest"
|
||
|
|
)
|
||
|
|
cursor = conn.cursor()
|
||
|
|
|
||
|
|
print("=== indicators_1m_macd 表结构 ===")
|
||
|
|
cursor.execute("DESCRIBE indicators_1m_macd")
|
||
|
|
for row in cursor.fetchall():
|
||
|
|
print(row)
|
||
|
|
|
||
|
|
print("\n=== klines_1m 表结构 ===")
|
||
|
|
cursor.execute("DESCRIBE klines_1m")
|
||
|
|
for row in cursor.fetchall():
|
||
|
|
print(row)
|
||
|
|
|
||
|
|
conn.close()
|