摘要: 一、安装 - Python idle调用anaconda包sys.path.append(r'E:\anaconda\Lib\site-packages') 类型 Series和DataFrame s2=pd.Series([1,2,3,4],['a','b','c','d'])s2.astype( 阅读全文
posted @ 2020-09-02 16:35 喻解 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 一、实现功能 获取中公网时政每日新闻,通过构造翻页网址实现量化 发送每日新闻的请求获取xptah匹配到的位置 import requests import time from lxml import etree import re def write_info(info): with open('时 阅读全文
posted @ 2020-09-02 11:14 喻解 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 一、合并路径下所有后缀xlsx工作薄第一个表格内容 import os import xlrd import pandas as pd #获取所有需要合并的工作簿路径,生成list def file_name(file_dir): list=[] for file in os.listdir(fil 阅读全文
posted @ 2020-09-02 11:00 喻解 阅读(630) 评论(0) 推荐(0) 编辑