This commit is contained in:
512song committed 2023-12-08 21:09:58 +08:00
1 parent dfa6d94bb1
commit 54a610a08f
1 file changed
+39
+39
View File
@@ -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": {