1234567891011121314151617181920212223242526272829303132333435363738 |
- from jqdatasdk import *
- auth('18616891214','Ea?*7f68nD.dafcW34d!')
- from sqlalchemy import create_engine
- import pandas as pd
- import datetime
- engine = create_engine('mysql+pymysql://root:r6kEwqWU9!v3@localhost:3307/hlfx_pool?charset=utf8')
- fre = '1d'
- pool =pd.read_sql_table('%s' % fre, con=engine).iloc[-1,2]
- stock_pool = pool.split(",")
- print(type(pool),pool)
- print(item for item in pool)
- print(type(stock_pool),stock_pool)
- print(item for item in stock_pool)
|