书生大模型第四期-python

74 阅读1分钟
任务类型任务内容预计耗时
闯关任务Leetcode 383(笔记中提交代码与leetcode提交通过截图)20mins
闯关任务Vscode连接InternStudio debug笔记10mins
可选任务pip安装到指定目录10mins

任务一截图:

image.png

任务二:

image.png 报错原因是:json.loads() 接收res的格式为json,但是大模型返回的结果包括其他冗余信息。 image.png 对输出结果进行一些处理

image.png

image.png 运行成功!!

任务三

使用pip install -t ./myenvs numpy进行安装 image.png

image.png