永生的博客

Charles安装与安卓手机同步配置
一:Charles的下载安装(https://www.charlesproxy.com/latest-release/download.do) 选择合适pc端的版本,一步步的进行安装即可 二:安装完成以后直接在搜索文件点击charles即可,进入软件页面(此软件试用期30天,试用期完后还可以每次...
阅读全文 »Python matplotlib使用
1.心形线 import numpy as np import matplotlib.pyplot as plt # 心形线 a = 1 theta = np.linspace(0, 2 * np.pi, 1000) r = a * (1 - np.cos(theta)) plt....
阅读全文 »django templatetags得使用
1.正则表达式 \blog\home\templatetags\comment_tags.py @register.filter(name='regexp') def regexp(value): # 分割获取第一个url catalog_list = re.c...
阅读全文 »python对word、excel和ppt操作
1.word from docx import Document # -*- coding: utf-8 -*- import os from docx import Document import win32com.client import datetime from...
阅读全文 »python句柄操作(后台)
1.根据标题获取句柄 # 根据句柄获取线程和pid #根据pid停止程序 import win32gui import time import os import win32process main_hwnd = win32gui.FindWindow(None, "屏幕截图") ...
阅读全文 »