共 37 篇文章
显示摘要每页显示  条
security[''tradeDate''] = pd.to_datetime(security[''tradeDate''])security.tail()Out[ ]:security[''s-l''] = security[''short_window''] - security[''long_window'']security[''Regime''] = np.where(security[''s-l'...
在此基础上操作IE. 附件中提供 win32com 及 PAMIE 供大家下载简单的例子:import PAM30ie = PAM30.PAMIE()ie.navigate(''www.google.com'')ie.setTextBox(''q'',''PAMIE'')ie.clickButton(''btnG'')复制代码 但是我们实际使用中,实际上会碰到许多的控件。
Python PAMIE模块在实际应用中是一个比较重要的应用技术。PAMIE的全称是Python Automated Module For Internet Explorer,顾名思义,PAMIE是一个实现IE自动化的模块。在最新版本中,PAM30.py中的类名已经换作PAMIE了,之前使用的import cPAMIE或 from cPAMIE import PAMIE显然会出错,from PAM30 import PAMIE.新建Python PAMIE模块实例。ie= P...
data = urllib.urlencode({"email":user,"password":password}) #以post的方法访问登陆页面,访问之后cookieJar会自定保存cookie opener.open(login_page,data) #以带cookie的方式访问页面 op=opener.open(url) #读取页面源码 data= op.read() return data except Exception,e: print s...
import tushare as tsimport pandas as pddf=ts.get_hist_data(''600415'',start=''2015-04-01'',end=''2015-06-18'')# 所有的结果汇图df.plot()# 只将stock最高值进行汇图df.high.plot()# 指定绘图的四个量,并指定线条颜色with pd.plot_params.use(''x_compat'', True): ...
自己用python写一个倒计时软件 - Huiwei的日志 - 网易博客自己用python写一个倒计时软件。# Countdown using Tkinter from Tkinter import *import timeimport tkMessageBox.root = Tk()root.title("Countdown")lbl1 = Label()lbl1.pack(fill=BOTH, expand=1)app = App(root)root.mainloop()
security[''closePrice''].plot(grid=False, figsize=(12,8)) sns.despine()2. 策略描述?window_short = 20 window_long = 120 SD = 0.05 security[''short_window''] = np.round(pd.rolling_mean(security[''closePrice''], window=window_short), 2) security[''long_window'&#...
filename="''+ files[key][''filename''] + ''"'') data.append(''Content-Type: "'' + files[key][''type''] + ''"'') data.append('''') data.append(files[key][''filedata'']) data.append...
encode和decode的妙用。byte string.Compress the operand using bz2.Convert operand to hexadecimal representation, with two digits per byte.Unicode string.Windows only: Encode operand according to the ANSI codepage (CP_ACP)raw_unicode_escape。string_escape。Can be used as the system encoding if no automatic coercion betw...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部