diff --git a/体测单位/天津石化.ipynb b/体测单位/天津石化.ipynb index 0f412fc..c69e8a3 100644 --- a/体测单位/天津石化.ipynb +++ b/体测单位/天津石化.ipynb @@ -222,6 +222,31 @@ "cell_type": "code", "execution_count": null, "id": "eb24c1be-b5d3-4e61-a432-854a887746d4", + "metadata": { + "tags": [] + }, + "outputs": [], + "source": [ + "import json\n", + "import time\n", + "import os,sys,shutil\n", + "import glob\n", + "\n", + "fi_list = []\n", + "m_time = '20221020'\n", + "m_path = 'file/134/20221020/'\n", + "fl=glob.glob(f'{m_path}*_????????.pdf')\n", + "for fn in fl:\n", + " f_date = os.path.basename(fn).split('_')[1][:8]\n", + " if m_time <= f_date:\n", + " fi_list.append(fn)\n", + "fi_list" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "c758420a-e2a4-4260-a571-ff06ed030076", "metadata": {}, "outputs": [], "source": []