This commit is contained in:
512song committed 2023-05-28 00:11:39 +08:00
1 parent 8242dc00aa
commit 7200d7334c
4 files changed
+1458 -258

No files matched your search

+8 -8
View File
@@ -364,14 +364,14 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 9,
"metadata": {
"execution": {
"iopub.execute_input": "2023-05-25T04:57:08.561094Z",
"iopub.status.busy": "2023-05-25T04:57:08.560220Z",
"iopub.status.idle": "2023-05-25T04:57:08.638199Z",
"shell.execute_reply": "2023-05-25T04:57:08.637153Z",
"shell.execute_reply.started": "2023-05-25T04:57:08.561054Z"
"iopub.execute_input": "2023-05-26T09:39:22.980282Z",
"iopub.status.busy": "2023-05-26T09:39:22.979405Z",
"iopub.status.idle": "2023-05-26T09:39:23.099441Z",
"shell.execute_reply": "2023-05-26T09:39:23.098684Z",
"shell.execute_reply.started": "2023-05-26T09:39:22.980241Z"
},
"tags": []
},
@@ -388,12 +388,12 @@
"import yaml\n",
"import json\n",
"\n",
"filename = 'data/全维健康职工心理测评量表.yml'\n",
"filename = 'data/西藏石油中医、心理测评量表.yaml'\n",
"with open(filename, 'r', encoding='utf-8') as f:\n",
" result = yaml.load(f.read(), Loader=yaml.FullLoader)\n",
"i = 1\n",
"#print(result)\n",
"filename = 'data/全维健康职工心理测评量表.json'\n",
"filename = 'data/西藏石油中医、心理测评量表.json'\n",
"with open(filename, 'w') as fl:\n",
" json.dump(result, fl, ensure_ascii=False)\n",
"print('ok')"