echo off setlocal enabledelayedexpansion set "EXCEL_DIR=%cd%\excel" for /R %EXCEL_DIR% %%f in (*.xls) do ( set "FILE_PATH=%%f" echo 完整的路径: !FILE_PATH! set "FILE_DIR=%%~dpf" echo 所在的目录: !FILE_DIR! set "FILE_NAME=%%~nf&quo
#!/usr/bin/env python # -*- coding: utf-8 -*- import ConfigParser import json import os import re from re import sub import sys import time import requests from pdfminer.converter import PDFPageAggregator from pdfminer.layout import LTTextBoxHorizont