20230330 noon
This commit is contained in:
parent
d42b1b1f27
commit
4027cfd16b
|
|
@ -2,15 +2,28 @@
|
|||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"正在生成: 高三下学期周末卷04答案\n",
|
||||
"0\n"
|
||||
"正在生成: 01_集合与逻辑答案\n",
|
||||
"0\n",
|
||||
"正在生成: 02_等式与不等式答案\n",
|
||||
"0\n",
|
||||
"正在生成: 03_幂指对函数答案\n",
|
||||
"0\n",
|
||||
"正在生成: 04_函数的概念与性质答案\n",
|
||||
"0\n",
|
||||
"正在生成: 05_函数综合答案\n",
|
||||
"0\n",
|
||||
"正在生成: 06_三角与解三角形答案\n",
|
||||
"0\n",
|
||||
"正在生成: 07_三角函数答案\n",
|
||||
"0\n",
|
||||
"正在生成: 08_平面向量与复数答案\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
@ -18,9 +31,25 @@
|
|||
"import os,re,json\n",
|
||||
"\n",
|
||||
"# filename = r\"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\第二轮复习讲义\\09_立体几何综合.tex\"\n",
|
||||
"filelist = [r\"C:\\Users\\weiye\\Documents\\wwy sync\\23届\\下学期周末卷\\高三下学期周末卷04.tex\",\n",
|
||||
"\n",
|
||||
"]\n",
|
||||
"filelist = ['C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\01_集合与逻辑.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\02_等式与不等式.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\03_幂指对函数.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\04_函数的概念与性质.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\05_函数综合.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\06_三角与解三角形.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\07_三角函数.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\08_平面向量与复数.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\09_立体几何综合.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\10_空间向量与应用.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\11_直线与圆.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\12_圆锥曲线.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\13_解析几何综合.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\14_等差数列和等比数列.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\15_数列综合.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\16_导数及其应用.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\17_计数原理与二项式定理.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\18_概率与统计.tex',\n",
|
||||
" 'C:\\\\Users\\\\weiye\\\\Documents\\\\wwy sync\\\\23届\\\\第二轮复习讲义\\\\19_统计.tex']\n",
|
||||
"pdf_dir = \"临时文件\"\n",
|
||||
"\n",
|
||||
"for filename in filelist:\n",
|
||||
|
|
@ -45,7 +74,7 @@
|
|||
" outlatex = f.read()\n",
|
||||
"\n",
|
||||
" outlatex = outlatex.replace(\"待替换1\",output_data)\n",
|
||||
" outlatex = outlatex.replace(\"标题文字待处理\",outfilename)\n",
|
||||
" outlatex = outlatex.replace(\"标题文字待处理\",outfilename.replace(\"_\",\"-\"))\n",
|
||||
"\n",
|
||||
" outfile = os.path.join(\"临时文件\",outfilename+\".tex\")\n",
|
||||
" with open(outfile,\"w\",encoding=\"u8\") as f:\n",
|
||||
|
|
|
|||
Reference in New Issue