This commit is contained in:
512song committed 2024-10-23 18:01:20 +08:00
1 parent ef48e3667c
commit 7af0af0f7e
3 files changed
+194 -197

No files matched your search

+12 -12
View File
@@ -124,15 +124,15 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 1,
"id": "970e171e-1360-448f-a28c-520ccb8f314a",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-18T02:17:23.733390Z",
"iopub.status.busy": "2023-10-18T02:17:23.733131Z",
"iopub.status.idle": "2023-10-18T02:17:23.758353Z",
"shell.execute_reply": "2023-10-18T02:17:23.757550Z",
"shell.execute_reply.started": "2023-10-18T02:17:23.733366Z"
"iopub.execute_input": "2024-10-22T02:25:41.269673Z",
"iopub.status.busy": "2024-10-22T02:25:41.268882Z",
"iopub.status.idle": "2024-10-22T02:25:41.287724Z",
"shell.execute_reply": "2024-10-22T02:25:41.287168Z",
"shell.execute_reply.started": "2024-10-22T02:25:41.269600Z"
},
"tags": []
},
@@ -141,8 +141,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"141\n",
"141\n"
"44\n",
"44\n"
]
}
],
@@ -161,11 +161,11 @@
"re_ta = {}\n",
"dict1 = {}\n",
"list1 = []\n",
"filename = 'data/北京党校.json'\n",
"filename = 'data/中国石化化工销售.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl) \n",
"\n",
"filename = 'data/places_result_20231018.csv'\n",
"filename = 'data/places_result_20241022.csv'\n",
"with open(filename,'r',newline='') as csv_file:\n",
" fl = csv.reader(csv_file,delimiter=',')\n",
" header = next(fl) \n",
@@ -186,7 +186,7 @@
" score = int(result[4])/item[m_item]['divisor'] \n",
" re_ta[user][item_name]['成绩'] = f'{score} {item[m_item][\"unit\"]}'\n",
"print(len(re_ta))\n",
"filename = 'data/result_北京党校.json'\n",
"filename = 'data/result_中国石化化工销售2023.json'\n",
"\n",
"with open(filename,'w') as fl:\n",
" json.dump(re_ta, fl, ensure_ascii=False) \n",
@@ -312,7 +312,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.12.3"
}
},
"nbformat": 4,