随笔分类 -  python

摘要:参考:https://www.cnblogs.com/xiao-apple36/p/8878960.html 阅读全文
posted @ 2018-10-27 21:25 飞鹰学习 阅读(434) 评论(0) 推荐(0)
摘要:# encoding=utf8 """ Created on Fri Oct 12 09:53:09 2018 @author: meilang 同一个cookie请求多次会被封 当前脚本的处理方案:找了很多cookie 和随机获取代理来请求 理想方案:动态获取cookie """ #!/usr/bin/python from bs4 import BeautifulSoup imp... 阅读全文
posted @ 2018-10-18 09:30 飞鹰学习 阅读(657) 评论(0) 推荐(0)
摘要:import talib import pandas as pd import time import numpy as np class demo: def __init__(self): print('demo 类') self.h5_path = 'Z:/data/stock_data_py' def 加载数据(self... 阅读全文
posted @ 2018-09-15 14:38 飞鹰学习 阅读(221) 评论(0) 推荐(0)
摘要:apply: DataFrame.apply(func, axis=0, broadcast=False, raw=False, reduce=None, args=(), **kwds) 该函数最有用的是第一个参数,这个参数是函数,相当于C/C++的函数指针。 这个函数需要自己实现,函数的传入参数 阅读全文
posted @ 2018-09-14 17:16 飞鹰学习 阅读(194) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- ''' 登录 买入 卖出 撤单 ''' import pandas as pd import numpy as np import sys import datetime import time import scipy.io import os import uuid import signal import win32api ... 阅读全文
posted @ 2018-09-11 10:07 飞鹰学习 阅读(2703) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ Created on Sat Apr 7 03:15:00 2018 @author: Administrator """ import pandas as pd import numpy as np import tushare as ts import time import threading class sina_rea... 阅读全文
posted @ 2018-09-09 13:32 飞鹰学习 阅读(3466) 评论(0) 推荐(0)
摘要://批量创建文件夹def 自动创建文件夹(self): path_list = [ 'date', 'andy', 'index', 'other'] for i in path_list: path_T = self.path + '/' + ... 阅读全文
posted @ 2018-09-09 12:10 飞鹰学习 阅读(151) 评论(0) 推荐(0)