This commit is contained in:
512song committed 2023-06-08 17:10:42 +08:00
1 parent da12135bd4
commit 94d6b1116a
5 files changed
+520 -215

No files matched your search

+8 -8
View File
@@ -364,14 +364,14 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 11,
"metadata": {
"execution": {
"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"
"iopub.execute_input": "2023-05-29T10:35:05.758138Z",
"iopub.status.busy": "2023-05-29T10:35:05.757286Z",
"iopub.status.idle": "2023-05-29T10:35:05.830677Z",
"shell.execute_reply": "2023-05-29T10:35:05.829666Z",
"shell.execute_reply.started": "2023-05-29T10:35:05.758096Z"
},
"tags": []
},
@@ -388,12 +388,12 @@
"import yaml\n",
"import json\n",
"\n",
"filename = 'data/西藏石油中医、心理测评量表.yaml'\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')"