20220929 afternoon
This commit is contained in:
parent
1158692bba
commit
6f6da57cd1
|
|
@ -2,7 +2,7 @@
|
||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 3,
|
"execution_count": 6,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
|
|
@ -36,8 +36,10 @@
|
||||||
"df = pd.read_excel(\"临时文件/statsfile.xlsx\")\n",
|
"df = pd.read_excel(\"临时文件/statsfile.xlsx\")\n",
|
||||||
"problems_indexes = list(df[df.columns[0]][2:])\n",
|
"problems_indexes = list(df[df.columns[0]][2:])\n",
|
||||||
"for p in problems_indexes:\n",
|
"for p in problems_indexes:\n",
|
||||||
" t = input(\"答题纸区域\"+p+\"的题号为(1-\"+str(len(problems_list))+\"):\")\n",
|
" t = input(\"答题纸区域\"+p+\"的题号为(1-\"+str(len(problems_list))+\", a为自动对应点前的题号):\")\n",
|
||||||
" if not (int(t)<1 or int(t)>len(problems_list)):\n",
|
" if t.upper() == \"A\":\n",
|
||||||
|
" correspondence_dict[p] = problems_list[int(re.findall(r\"([\\d]+?)\\.\",p)[0])-1]\n",
|
||||||
|
" elif not (int(t)<1 or int(t)>len(problems_list)):\n",
|
||||||
" correspondence_dict[p] = problems_list[int(t)-1] \n",
|
" correspondence_dict[p] = problems_list[int(t)-1] \n",
|
||||||
"\n",
|
"\n",
|
||||||
"outputstr = \"usages\\n\\n\"\n",
|
"outputstr = \"usages\\n\\n\"\n",
|
||||||
|
|
@ -71,6 +73,13 @@
|
||||||
"\n"
|
"\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": null,
|
"execution_count": null,
|
||||||
|
|
|
||||||
Reference in New Issue