ChatGPT API文档生成 提示词(Prompts)
2023-06-20 15:15 更新
标签:软件开发
中文提示词:
为以下的 [语言] 代码生成 API 文档:[代码片段]。
英文提示词:
Generate API documentation for the following [language] code: [code snippet].
中文提示词:
为给定的 [语言] 类创建简明的 API 参考:[代码片段]。
英文提示词:
Create a concise API reference for the given [language] class: [code snippet].
中文提示词:
为以下的 [语言] API 生成使用示例:[代码片段]。
英文提示词:
Generate usage examples for the following [language] API: [code snippet].
中文提示词:
记录给定的 [语言] 函数的预期输入和输出:[代码片段]。
英文提示词:
Document the expected input and output for the given [language] function: [code snippet].
中文提示词:
为使用以下的 [语言] 库编写一个快速入门指南:[代码片段]。
英文提示词:
Produce a quick-start guide for using the following [language] library: [code snippet].
提示
- ChatGPT 对英文的理解更为出色。如果你英文还可以,建议复制英文提示词。
- 英文提示词带来的回复也很可能是英文的,可以在提示词结尾添加
respond in Chinese
,将回复指定为中文。