20250611
This commit is contained in:
1 parent
d4c40dcab2
commit
db1359b2d0
4 files changed
+269
-130
No files matched your search
+23
-8
@@ -835,12 +835,12 @@
|
||||
"import glob\n",
|
||||
"from pathlib import Path\n",
|
||||
"\n",
|
||||
"fi_path = '/home/songyi/pdf-typescript-old2/青海2025'\n",
|
||||
"new_path = 'file/青海2025'\n",
|
||||
"fi_path = '/home/songyi/pdf-typescript-old2/东营石油设计院2025'\n",
|
||||
"new_path = 'file/东营石油设计院2025'\n",
|
||||
"old = []\n",
|
||||
"dict2 = {}\n",
|
||||
"\n",
|
||||
"filename = 'data/result_青海2025-1.json'\n",
|
||||
"filename = 'data/result_东营石油工程设计院2025.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"fls = glob.glob(f'{fi_path}/*.pdf')\n",
|
||||
@@ -866,12 +866,27 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 13,
|
||||
"id": "02319955-7fb6-4791-ae45-55b03bdadd54",
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2025-06-09T08:21:54.417984Z",
|
||||
"iopub.status.busy": "2025-06-09T08:21:54.417267Z",
|
||||
"iopub.status.idle": "2025-06-09T08:21:54.455725Z",
|
||||
"shell.execute_reply": "2025-06-09T08:21:54.455117Z",
|
||||
"shell.execute_reply.started": "2025-06-09T08:21:54.417917Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"ok\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import os,sys,shutil\n",
|
||||
"import json\n",
|
||||
@@ -879,9 +894,9 @@
|
||||
"from pathlib import Path\n",
|
||||
"import openpyxl\n",
|
||||
"\n",
|
||||
"fi_path = '/home/songyi/pdf-typescript-old2/青海2025'\n",
|
||||
"fi_path = '/home/songyi/pdf-typescript-old2/东营石油设计院2025'\n",
|
||||
"\n",
|
||||
"filename = 'data/result_青海2025-1.json'\n",
|
||||
"filename = 'data/result_东营石油工程设计院2025.json'\n",
|
||||
"with open(filename,'r') as fl:\n",
|
||||
" dict1 = json.load(fl)\n",
|
||||
"fls = glob.glob(f'{fi_path}/*.pdf')\n",
|
||||
@@ -897,7 +912,7 @@
|
||||
" \n",
|
||||
" list1.append(list2)\n",
|
||||
"\n",
|
||||
"filename = 'data/青海油田勘探事业部2025年体测报告明细表.xlsx'\n",
|
||||
"filename = 'data/东营石油工程设计院2025年体测报告明细表.xlsx'\n",
|
||||
"wb = openpyxl.Workbook()\n",
|
||||
"sheet = wb.active\n",
|
||||
"sheet.append(title)\n",
|
||||
|
||||
Reference in new issue
Block a user