Skip to content

Commit 487701a

Browse files
committed
bug修复
1 parent 4874480 commit 487701a

4 files changed

Lines changed: 22 additions & 11 deletions

File tree

docs/前端/Flutter.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,7 @@ export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
3131

3232
##### 永久配置(推荐)
3333

34-
- Windows:通过"此电脑 → 右键属性 → 高级系统设置 → 环境变量",在"用户变量"或"系统变量"中新增两个变量:`PUB_HOSTED_URL`(值:`https://pub.flutter-io.cn`)、`FLUTTER_STORAGE_BASE_URL`(值:`https://storage.flutter-io.cn`)。
34+
- Windows:通过"此电脑 → 右键属性 → 高级系统设置 → 环境变量",在"用户变量"或"系统变量"中新增两个变量:
35+
- `PUB_HOSTED_URL`,值为:https://pub.flutter-io.cn
36+
- `FLUTTER_STORAGE_BASE_URL`,值为:https://storage.flutter-io.cn
3537
- macOS/Linux:编辑 shell 配置文件(bash 为 ~/.bash_profile,zsh 为 ~/.zshrc),添加上述两条 export 指令,保存后执行 `source ~/.bash_profile``source ~/.zshrc` 生效。

docs/后端/Java基础—寒枫.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ person.add("jackie"); //索引为0 //.add(e)
255255

256256
原本我们需要创建子类或者实现类,去继承父类和实现接口,才能重写其中的方法。但是有时候我们这样做了,然而子类和实现类却只使用了一次(定义了一个对象)。这个时候我们就可以使用匿名内部类,不用去写子类和实现类,起到简化代码的作用。
257257

258-
匿名内部类的格式:父类/接口 对象 = new 父类/接口(){ 重写父类/接口中的方法 };
258+
匿名内部类的格式:父类/接口 对象 = new 父类/接口(){ 重写父类或接口中的方法 };
259259

260260
这样做就把子类继承父类,重写父类中的方法,创建子类对象,合成了一步完成,减少了其中创建子类的过程。或者将实现类实现接口,重写接口中的方法,创建实现类对象,合成了一步完成,减少了其中创建实现类的过程
261261

docs/后端/Maven基础.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,18 @@ Maven 下载地址:http://maven.apache.org/download.cgi
4848

4949
### 依赖管理
5050

51-
<img src="https://hanphone.top/gh/HanphoneJan/public_pictures/backend/maven仓库交互图.webp" alt="maven仓库交互图" style="zoom:80%;" />
51+
![maven仓库交互图](https://hanphone.top/gh/HanphoneJan/public_pictures/backend/maven仓库交互图.webp)
5252

53-
pom.xml 的 dependencies 列表列出了我们的项目需要构建的所有外部依赖项。
53+
```xml
54+
<!-- pom.xml 的 dependencies 列表列出了我们的项目需要构建的所有外部依赖项 -->
55+
<dependencies>
56+
<dependency>
57+
<groupId>org.example</groupId>
58+
<artifactId>my-project</artifactId>
59+
<version>1.0.0</version>
60+
</dependency>
61+
</dependencies>
62+
```
5463

5564
项目同步依赖前要先配置 JDK。
5665

@@ -102,7 +111,7 @@ clean: 生命周期负责清理项目的临时文件和目录(主要是 targ
102111

103112
dafault(build):Maven 构建(build)生命周期是由以下几个阶段的序列组成的
104113

105-
<img src="https://hanphone.top/gh/HanphoneJan/public_pictures/backend/maven生命周期图.webp" alt="maven生命周期图" style="zoom:80%;" />
114+
![maven生命周期图](https://hanphone.top/gh/HanphoneJan/public_pictures/backend/maven生命周期图.webp)
106115

107116
site: 生命周期用于生成项目站点文档
108117

docs/机器学习/LangChain入门--寒枫.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ CommaSeparatedListOutputParser:解析为逗号分隔的列表
6363
- **基础文本模板(PromptTemplate)**:适用于 LLM,支持变量插入,格式为`template + input_variables`
6464

6565
```python
66-
from langchain.prompts import PromptTemplate
67-
prompt = PromptTemplate(
68-
template="请用{style}风格总结:{text}",
69-
input_variables=["style", "text"] # 动态变量
70-
)
71-
formatted_prompt = prompt.format(style="幽默", text="今天天气很好...")
66+
from langchain.prompts import PromptTemplate
67+
prompt = PromptTemplate(
68+
template="请用{'{'}style{'}'}风格总结:{'{'}text{'}'}",
69+
input_variables=["style", "text"] # 动态变量
70+
)
71+
formatted_prompt = prompt.format(style="幽默", text="今天天气很好...")
7272
```
7373

7474
- **对话模板(ChatPromptTemplate)**:适用于 ChatModel,需指定消息角色(系统、用户、助手),确保对话格式正确。

0 commit comments

Comments
 (0)