_Decompiller EX4-MQL crack free download
_Not sorted. Very much in subfolders 5 Gb crack free download
10 Pips Pro, $300 (10PipsPro.com) crack free download
10p3 crack free download
4X-PREDICTOR-M (4XFX.biz) crack free download
5 EMAs Forex System (5emas-forex-trading-system.com) crack free dow[……]
Category: Stocks&Forex
from pytdx.hq import TdxHq_API import time api = TdxHq_API() with api.connect('119.147.212.81', 7709): #while(True): time.sleep(3) data = api.to_df(api.get_security_quotes([(1, '600300')])) # DataFrame data.to_csv('price.csv',index=False,sep=',')
例:
import threading
from time import ctime,sleep
def func1():
while 1>0:
print (‘running func1 ‘+ctime())
sleep(3)
def func2():
while 1>0:
print (‘running func2 ‘+ctime())
sleep(5)
t1=threading.Thread(target=func1)
t2=threading.Thread(target=func2)
t1.start()
t2.start[……]
例:
import os
import time
import tushare as ts
import pandas as pd
def check(code):
df = ts.get_realtime_quotes(code)
e = df[[‘code’,’name’,’price’,’time’]]
print (e)
check (‘sh’)
更多数据:tushare.org
1 根据窗口标题,获取窗口句柄
注:股票交易界面,要提取两个句柄,登陆窗口和登陆后窗口
import ctypes op=ctypes.windll.user32 print (op.FindWindowW(0, "网上股票交易系统5.0"))
2匿名函数
add=lambda x,y:abs(x+y)
print (add(1,2))
3 Python 运行其他程序
import os
os.popen(u”C:\\htzqzyb2\\xiadan.exe”)
4 GetDlgItem(窗口句柄,控件id)
根据窗口句柄和控件ID获取控件句柄,有了控件句柄[……]
Recent Comments