main
HuangHai 2 weeks ago
parent ee361e6a8d
commit a9ad11fc80

@ -1,29 +1 @@
一、单项选择题:本题共 8 小题, 每小题 5 分, 共 40 分.在每小题给出的四个选项中, 只有一项是符合题目要求的.
1. 已知集合 $A=\left\{x \mid-5<x^{3}<5\right\}, B=\{-3,-1,0,2,3\}$, $A \cap B=$ 【答案】A
A. $\{-1,0\}$ B. $\{2,3\}$ C. $\{-3,-1,0\}$ D. $\{-1,0,2\}$
【解析】 $A \cap B=\{-1,0\}$, 选 A.
2. 若 $\frac{2}{z-1}=1+\mathrm{i}$, 则 $z=$ 【答案】C
A. $-1-\mathrm{i}$ B. $-1+\mathrm{i}$ C. $1-\mathrm{i}$ D. $1+\mathrm{i}$
3. 已知向量 $\vec{a}=(0,1), \vec{b}=(2, x)$, 若 $\vec{b} \perp (\vec{b}-4 \vec{a})$, 则 $x=$ 【答案】D
A. $-2$ B. $-1$ C. 1 D. 2
【解析】 $\vec{b}-4 \vec{a}=(2, x-4), \vec{b} \perp (\vec{b}-4 \vec{a}), \therefore \vec{b}(\vec{b}-4 \vec{a})=0$, $\therefore 4+x(x-4)=0, \therefore x=2$, 选 D.
4. 已知 $\cos (\alpha+\beta)=m, \tan \alpha \tan \beta=2$, 则 $\cos (\alpha-\beta)=$ 【答案】A
A. $-3 m$ B. $-\frac{m}{3}$ C. $\frac{m}{3}$ D. $3 m$
【解析】 $\left\{\begin{array}{l}\cos \alpha \cos \beta-\sin \alpha \sin \beta=m \\\frac{\sin \alpha \sin \beta}{\cos \alpha \cos \beta}=2\end{array}, \therefore\left\{\begin{array}{l}\sin \alpha \sin \beta=-2 m \\\cos \alpha \cos \beta=-m\end{array}\right.\right.$
$\cos (\alpha-\beta)=\cos \alpha \cos \beta+\sin \alpha \sin \beta=-m-2 m=-3 m$, 选 A.
5. 已知圆柱和圆锥的底面半径相等, 侧面积相等, 且它们的高均为 $\sqrt{3}$, 则圆锥的体积为 【答案】B
A. $2 \sqrt{3} \pi$ B. $3 \sqrt{3} \pi$ C. $6 \sqrt{3} \pi$ D. $9 \sqrt{3} \pi$
【解析】设它们底面半径为 $r$, 圆锥母线 $l$, $\therefore 2 \pi r \sqrt{3}=\pi r l$, $\therefore l$ 知 $\sqrt{3} \therefore \sqrt{3}$
进程已结束,退出代码为 0
$$1 . \text { 已知集合 } A = \left\{ x \mid - 5 < x ^ { 3 } < 5 \right\} , B = \left\{ - 3 , - 1 , 0 , 2 , 3 \right\} , \text { } A \cap B = \text { 【答案】 } A$$

@ -7,6 +7,10 @@ client = OpenAI(
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
)
prompt = "请提取图片中的试题"
prompt += "1、需要Latex公式输出的注意加上 $$ 或 $ 进行包含。"
prompt += "2、以中文数字开头的行请忽律掉此行比如 一、单项选择题 二、填空题 ..."
prompt += "3、输出格式 【题型】xxx 【题目内容】 xxx 【答案】 xxxx 【解析】 xxxx。"
completion = client.chat.completions.create(
model="qwen-vl-ocr-latest",
messages=[
@ -21,10 +25,10 @@ completion = client.chat.completions.create(
# 输入图像的最大像素阈值超过该值图像会按原比例缩小直到总像素低于max_pixels
"max_pixels": 28 * 28 * 8192
},
# qwen-vl-ocr-latest支持在以下text字段中传入Prompt若未传入则会使用默认的PromptPlease output only the text content from the image without any additional descriptions or formatting.
# 如调用qwen-vl-ocr-1028模型会使用固定PromptRead all the text in the image.不支持用户在text中传入自定义Prompt
# qwen-vl-ocr-latest支持在以下text字段中传入Prompt若未传入则会使用默认的PromptPlease output only the text content from the image without any additional descriptions or formatting.
# 如调用qwen-vl-ocr-1028模型会使用固定PromptRead all the text in the image.不支持用户在text中传入自定义Prompt
{"type": "text",
"text": "请提取图片中的试题,需要Latex公式输出的注意加上 $$ 或 $ 进行包含。"},
"text": prompt},
]
}
])
@ -35,4 +39,4 @@ print(completion.choices[0].message.content)
with open('2、识别出结果.md', 'w', encoding='utf-8') as f:
f.write(completion.choices[0].message.content)
print("保存成功!")
print("保存成功!")

Loading…
Cancel
Save