python
文章平均质量分 50
Sanzo00
sanzo.top
展开
-
pybind11简单使用
https://sanzo.top/Default/pybind11pybind11介绍github.com/pybind/pybind11使用pybind11可以将C++库绑定到Python,即在Python内调用C++代码,同样也可以在C++中调用Python代码。编译安装# install pytestpip install pytest# install pybind11git clone https://github.com/pybind/pybind11.gitcd pyb原创 2021-08-03 08:36:46 · 1201 阅读 · 1 评论 -
爬虫 - POJ题目信息
方便Markdown写博客import re,requestsfrom bs4 import BeautifulSoup# ptt = soup.find_all(name='div', attrs={"class":"ptt"})[0]#获取小标题def get_title(soup): return soup.find_all(name='p', attrs={&a原创 2018-08-05 16:06:04 · 243 阅读 · 0 评论 -
爬虫 - HDU题目信息
方便Markdown写博客import re, requestsfrom bs4 import BeautifulSoup#获取小标题def get_title(soup): return soup.find_all(name='div', attrs='panel_title')#获取文本def get_content(soup): return soup.fi...原创 2018-08-05 16:04:38 · 301 阅读 · 0 评论 -
B站视频下载
项目地址:github.com/Sanzona/BilibiliVideoDownload使用说明# 克隆仓库git clone https://github.com/Sanzona/BilibiliVideoDownload.gitcd BilibiliVideoDownload# 安装依赖pip3 install -r requirements.txtapt install ffmpeg# wget -O ~/.imageio/ffmpeg/ffmpeg-linux64-v3.3.1原创 2020-10-09 17:45:56 · 389 阅读 · 0 评论 -
python - 定时拍照并发送到qq
写在前面前两天发生一些恶心的事,突然想用python实现自动拍照的功能间接起到监控的作用。 网上搜了各种资料,整理如下。代码from VideoCapture import Devicefrom PIL import Imagefrom ctypes import *import os, time, win32gui, win32con, win32clipboard as ...原创 2018-06-14 23:56:19 · 2032 阅读 · 0 评论 -
py-词频统计
title: py-词频统计date: 2018-12-21 12:32:35tags: [解析式,lambda]categories: Python词频统计import stringpath = 'C:/Users/Desktop/Walden.txt'with open(path, 'r', encoding='utf-8-sig') as text: # 首字母...原创 2018-12-21 12:41:10 · 509 阅读 · 1 评论