20230120 afternoon
This commit is contained in:
parent
fe116ab27b
commit
e69e1ccdda
|
|
@ -2,7 +2,7 @@
|
|||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
|
|
@ -280,6 +280,7 @@
|
|||
" text1 = re.sub(r\"\\s*\\\\bracket\\{20\\}\\s*\\n\",r\"\\\\bracket{20}.\\n\",text1)\n",
|
||||
" #改非规范选择题\n",
|
||||
" text1 = re.sub(r\"[\\.;]\\}\",\"}\",text1)\n",
|
||||
" text1 = re.sub(r\"([\\u4e00-\\u9fa5])[\\s]+([\\d]{1,6})[\\s]+([\\u4e00-\\u9fa5])\",lambda x:x.group(1)+\"$\"+x.group(2)+\"$\"+x.group(3),text1)\n",
|
||||
" modified_texts.append(text1)\n",
|
||||
" \n",
|
||||
"\n",
|
||||
|
|
@ -358,6 +359,9 @@
|
|||
"modified_data = re.sub(r\"\\$\\(\\s*\\)\\$\",r\"\\\\bracket{20}\",modified_data)\n",
|
||||
"modified_data = re.sub(r\"([\\u4e00-\\u9fa5\\$])[\\s]*\\n\\\\fourch\",lambda x: x.group(1)+\"\\\\bracket{20}.\\n\\\\fourch\",modified_data)\n",
|
||||
"\n",
|
||||
"#改圆弧\n",
|
||||
"modified_data = re.sub(r\"overparen\",r\"overset\\\\frown\",modified_data)\n",
|
||||
"\n",
|
||||
"setCopy(modified_data)\n",
|
||||
"\n",
|
||||
"with open(\"临时文件/outputfile.txt\",\"w\",encoding = \"utf8\") as f:\n",
|
||||
|
|
|
|||
Reference in New Issue