自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 文件夹内excel整合

import pandas as pdimport osdef show_files(path,all_files): file_list = os.listdir(path) for file in file_list: cur_path = os.path.join(path,file) if os.path.isdir(cur_path): show_files(cur_path,all_files) el

2020-08-06 01:17:38 249

原创 发送图片至企业微信

from apscheduler.schedulers.blocking import BlockingSchedulerfrom datetime import datetimeimport requestsimport json import hashlib import base64def picture(): f=open(r"D:\...\Desktop\d0da28.gif","br") fcont = f.read() ls_f = base64.b64e

2020-07-10 16:44:33 1197

原创 文件夹内有序文件批量修改名字

import ospath = r"C:/Users/EDZ/Downloads/今日数据/" # 目标路径"""os.listdir(path) 操作效果为 返回指定路径(path)文件夹中所有文件名"""filename_list = os.listdir(path) # 扫描目标路径的文件,将文件名存入列表a = 0b = 1for i in filename_list: used_name = path + filename_list[a] # new_nam

2020-07-10 16:38:55 302

转载 Win10使用pycharm读写Access的数据库,accdb类型

使用pypyodbc2016驱动程序下载链接:https://www.microsoft.com/en-us/download/details.aspx?id=54920import pypyodbcfile_path = r'C:\Users\EDZ\PycharmProjects\untitled3\1\test.accdb'str = 'Driver={Microsoft Acce...

2020-04-02 22:51:31 1185

转载 通过Python读取Excel展示在网页上(转载)

from flask import Flaskimport pandas as pdapp = Flask (__name__)@app.route('/')def show_excel (): df1=pd.read_excel('./搬砖记账本.xlsx',sheet_name='2020年') table_html = df1.to_html() retu...

2020-03-30 19:17:40 3557

原创 Beautiful soup解析的html包含空格如何预处理

Beautiful soup解析的html包含空格如何预处理解析出的 \r 如何处理掉?```pythonfrom bs4 import BeautifulSoupimport requestsimport timeimport replaceurl = 'https://bj.58.com/pingbandiannao/26062681492781x.shtml?adtype=...

2020-03-22 23:03:31 565

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除