共 37 篇文章 |
|
阅1 转自红牛2008 公众公开 19-03-06 09:04 |
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'... 阅68 转0 评0 公众公开 16-08-06 21:16 |
在此基础上操作IE. 附件中提供 win32com 及 PAMIE 供大家下载简单的例子:import PAM30ie = PAM30.PAMIE()ie.navigate(''www.google.com'')ie.setTextBox(''q'',''PAMIE'')ie.clickButton(''btnG'')复制代码 但是我们实际使用中,实际上会碰到许多的控件。 阅1 转自liluvu 公众公开 16-07-27 12:58 |
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... 阅1 转自liluvu 公众公开 16-07-27 12:58 |
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... 阅1 转自liluvu 公众公开 16-07-27 12:57 |
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): ... 阅5 转自powerbaby 公众公开 16-07-24 12:43 |
自己用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() 阅1 转自ganame 公众公开 16-07-16 09:52 |
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'... 阅2 转自powerbaby 公众公开 16-07-16 09:46 |
filename="''+ files[key][''filename''] + ''"'') data.append(''Content-Type: "'' + files[key][''type''] + ''"'') data.append('''') data.append(files[key][''filedata'']) data.append... 阅3597 转14 评0 公众公开 16-07-04 16:27 |
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... 阅185 转0 评0 公众公开 16-07-03 16:17 |