12 2020 档案
ximalaya-spider
摘要:import requests import parsel, re, json headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.26 阅读全文
posted @ 2020-12-25 09:22 风雨无阻! 阅读(102) 评论(0) 推荐(0)
无名小站
摘要:import re from urllib import parse import tkinter as tk import tkinter.messagebox as msgbox import webbrowser class App(object): def __init__(self,wid 阅读全文
posted @ 2020-12-23 00:51 风雨无阻! 阅读(971) 评论(0) 推荐(0)
python send email
摘要:import smtplib from email.mime.text import MIMEText from_address = 'xxx@huawei.com' to_address = 'xxx@huawei.com' msg = MIMEText('Hello, send by Pytho 阅读全文
posted @ 2020-12-22 20:11 风雨无阻! 阅读(79) 评论(0) 推荐(0)
spider-bilibili
摘要:# 话不多说,直接上源码import urllib, requests import urllib.request as req import re import json import subprocess headers = { 'user-agent': 'Mozilla/5.0 (Windo 阅读全文
posted @ 2020-12-18 11:21 风雨无阻! 阅读(114) 评论(0) 推荐(0)
windows镜像
摘要:1.下载ISO镜像 到微软官方网站下载镜像文件,地址:https://www.microsoft.com/zh-cn/software-download/windows10。 2. 集成VMTools驱动 2.1 去官网下载UltraISO,并安装至本地: 下载地址:https://www.ultr 阅读全文
posted @ 2020-12-17 16:37 风雨无阻! 阅读(2086) 评论(0) 推荐(0)
python 爬取豆瓣电影写入到excel中
摘要:1 from bs4 import BeautifulSoup 2 import requests 3 import urllib.request as req 4 import xlwt 5 6 class Spider(object): 7 def __init__(self): 8 self. 阅读全文
posted @ 2020-12-09 17:22 风雨无阻! 阅读(231) 评论(0) 推荐(0)
pdf 转 word
摘要:编程环境: attrs==17.4.0 lxml==4.1.1 pdfminer3k==1.3.4 pluggy==0.6.0 ply==3.11 py==1.5.2 pytest==3.4.1 python-docx==0.8.6 six==1.11.0 from pdfminer.pdfpars 阅读全文
posted @ 2020-12-01 15:35 风雨无阻! 阅读(79) 评论(0) 推荐(0)
文档分割、合并
摘要:import os from PyPDF2 import PdfFileReader, PdfFileWriter dir_name = '保存文件目录' if not os.path.exists(dir_name): os.mkdir(dir_name) # 用pypdf2分割PDF pdf_r 阅读全文
posted @ 2020-12-01 14:36 风雨无阻! 阅读(67) 评论(0) 推荐(0)
文档合并
摘要:import win32com.client as win32 import os word = win32.gencache.EnsureDispatch('Word.Application') # 启动word对象应用 word.Visible = False path = 'D:\\progr 阅读全文
posted @ 2020-12-01 14:33 风雨无阻! 阅读(57) 评论(0) 推荐(0)