From 54a610a08f4b2aa1694009f04ab72fd73806afd3 Mon Sep 17 00:00:00 2001 From: 512song Date: Fri, 8 Dec 2023 21:09:58 +0800 Subject: [PATCH] 20231208 --- 数据处理.ipynb | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/数据处理.ipynb b/数据处理.ipynb index dcbccd7..3d54ea2 100644 --- a/数据处理.ipynb +++ b/数据处理.ipynb @@ -179,6 +179,45 @@ "print('gbs:', gbs)" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### 数据组合处理" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "execution": { + "iopub.execute_input": "2023-12-08T10:11:52.929119Z", + "iopub.status.busy": "2023-12-08T10:11:52.928641Z", + "iopub.status.idle": "2023-12-08T10:11:52.936810Z", + "shell.execute_reply": "2023-12-08T10:11:52.935417Z", + "shell.execute_reply.started": "2023-12-08T10:11:52.929081Z" + }, + "tags": [] + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "8\n" + ] + } + ], + "source": [ + "import itertools\n", + "\n", + "list1 = ['气虚','阳虚','阴虚','痰湿','湿热','血瘀','气郁','特禀']\n", + "list2 = [0,1,2,3,4,5,6,7]\n", + "\n", + "result=itertools.combinations(list1,7)\n", + "print(len(list(result)))\n" + ] + }, { "cell_type": "markdown", "metadata": {