- 博客(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 256
原创 发送图片至企业微信
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 1205
原创 文件夹内有序文件批量修改名字
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 311
转载 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 1202
转载 通过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 3603
原创 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 581
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人