From 6f6da57cd1a6419c4ac9cdea94feaacbe6f93cfa Mon Sep 17 00:00:00 2001 From: Wang Weiye Date: Thu, 29 Sep 2022 16:52:42 +0800 Subject: [PATCH] 20220929 afternoon --- .../分年级专用工具/小闲平台作业测验数据导入.ipynb | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/工具/分年级专用工具/小闲平台作业测验数据导入.ipynb b/工具/分年级专用工具/小闲平台作业测验数据导入.ipynb index 98099400..a09a923f 100644 --- a/工具/分年级专用工具/小闲平台作业测验数据导入.ipynb +++ b/工具/分年级专用工具/小闲平台作业测验数据导入.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 3, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -36,8 +36,10 @@ "df = pd.read_excel(\"临时文件/statsfile.xlsx\")\n", "problems_indexes = list(df[df.columns[0]][2:])\n", "for p in problems_indexes:\n", - " t = input(\"答题纸区域\"+p+\"的题号为(1-\"+str(len(problems_list))+\"):\")\n", - " if not (int(t)<1 or int(t)>len(problems_list)):\n", + " t = input(\"答题纸区域\"+p+\"的题号为(1-\"+str(len(problems_list))+\", a为自动对应点前的题号):\")\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", "\n", "outputstr = \"usages\\n\\n\"\n", @@ -71,6 +73,13 @@ "\n" ] }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "code", "execution_count": null,