1. 合并多个pdf
import os
from PyPDF2 import PdfMergertarget_path 1
pdf_lst [f for f in os.listdir(target_path) if f.endswith(.pdf)]
pdf_lst [os.path.join(target_path, filename) for filename in pdf_lst]file_merger PdfMerger()
for pdf in pdf_lst:file_me…
Shell Scriptfor循环结构语句
一、Shell FOR循环语句概述
属于shell的符合语句
可以看出帮助信息给出了两种语法
[rootlocalhost ~]# help for
for: for NAME [in WORDS ... ] ; do COMMANDS; doneExecute commands for each member in a list.The for loop executes…