Pelican 安装简要配置说明
Pelican 安装简要配置说明
more ...当前文件夹下PDF文件页码计数
import PyPDF2
import time
import os
file_name = os.listdir(os.getcwd()) # 获取当前路径
file_typ = ".pdf"
pdf_list = []
b = 0
totalpag = 0
for n in file_name:
if file_typ in n: #判断是否是PDF文件
print("Found PDF file:" + n)
pdf_list.append(n)
pdfReader = PyPDF2.PdfFileReader(n …
more ...
PDF中提取图片
- 安装库
C:\Users\*****>pip install pymupdf
Collecting pymupdf
Downloading PyMuPDF-1.17.5-cp38-cp38-win_amd64.whl (5.1 MB)
|████████████████████████████████| 5.1 MB 273 kB/s
Installing collected packages: pymupdf
Successfully installed pymupdf-1.17.5
C:\Users\*****>
- python 脚本
import fitz import time import re import os def pdf2pic(path, pic_path …more ...
python 列出文件夹下所有的文件以及文件夹名
import os
path = 'D:\******……' #定义路径
folders = os.listdir(path)
for folder in folders:
print(folder)
more ...
ubuntu 16.04 安装django
ubuntu合两个版本的python ,同时又python2 和python3
当前系统版本
terry@vUBox:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS Release: 16.04 Codename: xenial
1.启动python2
terry@vUBox:~$ python Python 2.7.12 (default, Nov 19 …more ...
OVF和OVA的区别
OVF和OVA的区别
more ...windows python 安装
windows python 安装
一、下载python
可以选择百度或者官网方式。
运行下载的MSI安装包,在选择安装组件的一步时,勾上所有的 …