严富坤的知识库专栏 本次搜索耗时 0.151 秒,为您找到 335 个相关结果.
  • 模板方法模式

    1298 2024-09-12 《设计模式》
    Question 1: What is the Template Method pattern in software design? 问题 1:什么是软件设计中的模板方法模式? Answer: The Template Method pattern is a behavioral design pattern that defines the s...
  • 迭代器模式

    1298 2024-09-12 《设计模式》
    Question 1: What is the Iterator pattern in software design? 问题 1:什么是软件设计中的迭代器模式? Answer: The Iterator pattern is a behavioral design pattern that provides a way to access ele...
  • 异常处理机制:化解编程中的意外之旅

    1295 2024-03-05 《JavaScript教程》
    什么是异常? JavaScript中的异常处理 try…catch语句 finally语句 抛出异常 异常对象 异常处理的最佳实践 提供有意义的错误信息 避免滥用异常 清理资源 使用自定义错误类型 总结 在编程的旅途中,我们常常会遇到各种意外情况——输入错误、网络故障、服务器崩溃等等。这些意外情况如果不加以处理,可能会导致程序崩溃...
  • 解释器模式

    1294 2024-09-12 《设计模式》
    Question 1: What is the Interpreter pattern in software design? 问题 1:什么是软件设计中的解释器模式? Answer: The Interpreter pattern is a behavioral design pattern that provides a way to eval...
  • 门面模式

    1288 2024-09-12 《设计模式》
    Question 1: What is the Facade pattern in software design? 问题 1:什么是软件设计中的门面模式? Answer: The Facade pattern is a structural design pattern that provides a simplified interface t...
  • 策略模式

    1286 2024-09-12 《设计模式》
    Question 1: What is the Strategy pattern in software design? 问题 1:什么是软件设计中的策略模式? Answer: The Strategy pattern is a behavioral design pattern that defines a family of algorithm...
  • 观察者模式

    1284 2024-09-12 《设计模式》
    Question 1: What is the Observer pattern in software design? 问题 1:什么是软件设计中的观察者模式? Answer: The Observer pattern is a behavioral design pattern that defines a one-to-many depend...
  • 责任链模式

    1283 2024-09-12 《设计模式》
    Question 1: What is the Chain of Responsibility pattern in software design? 问题 1:什么是软件设计中的责任链模式? Answer: The Chain of Responsibility pattern is a behavioral design pattern use...
  • 提示工程(Prompt Engineering)概要

    提示工程基础 LLM输出配置 输出长度 采样控制 温度 (Temperature) Top-K和Top-P 提示技术 零样本提示 (Zero-shot) 单样本和少样本提示 (One-shot & Few-shot) 系统、上下文和角色提示 后退提示 (Step-back) 思维链 (Chain of Thought, CoT) 优势: ...
  • 流程控制

    1265 2024-05-31 《Java基础教程》
    1. 背景与初衷 2. 流程控制的类型 3. 条件语句 3.1 if 语句 3.2 if-else 语句 3.3 if-else if-else 语句 3.4 switch 语句 4. 循环语句 4.1 for 循环 4.2 增强的 for 循环 4.3 while 循环 4.4 do-while 循环 5. 分支语句 5.1 bre...