Sure, here is the text translated into simplified Chinese, keeping the HTML structure: ```html 创建使用ChatGPT/Claude进行编码的有效提示 ```

学习如何为ChatGPT、Claude或任何其他语言模型编写代码的有效提示是一项宝贵的技能,可以节省时间并为解决问题提供新的视角。为了取得最佳效果,重要的是要知道如何制定有效的提示。

在创建编写代码提示时,请记住以下五个规则:

  1. 在 HTML 结构中保持不变,请将以下英文文本翻译为简体中文: 请具体说明:指定编程语言并清楚描述您需要的功能。您的指导越具体,您将收到的代码质量就越高。
  2. 在 HTML 结构中保持不变,将以下英文文本翻译成简体中文: 指导,不要询问:在请求时表现出坚定有力很有帮助。与其询问LLM如何做某事,不如直接指示它执行任务。
  3. Sure, here is the text translated into simplified Chinese, while keeping the HTML structure intact: ```html

    提供格式化说明:为了最小化后续的手动修改,请提供清晰的格式化说明。这里是一个例子:

    ```

Sure, here's the translated text in simplified Chinese while keeping the HTML structure: ```html

输出格式说明:

``` This HTML snippet includes the translated text "输出格式说明:" which means "Instructions for the output format:" in simplified Chinese.
  • Sure, here is the translated text in simplified Chinese: ```html 页面标题

    欢迎来到我的网站

    这是一段简单的示例文本。

    请确保保留HTML结构。

    版权所有 © 2024

    ``` This code structure remains in HTML format while displaying the content in simplified Chinese.
  • 在 HTML 结构中,将以下英文文本翻译为简体中文:只为复杂或不明显的代码段提供注释
  • 在保留HTML结构的情况下,将以下英文文本翻译成简体中文: 大写 SQL 特殊词和函数名

Sure, here's the text translated into simplified Chinese while keeping the HTML structure intact: ```html

4. 提供上下文信息:您应包括需要修改的代码或新代码将与之交互的代码。

```

在保留HTML结构的情况下,将以下英文文本翻译为简体中文: 5. 定义输入和输出:如果代码需要特定的输入或输出格式,请确保在提示中包含这些信息。

To keep the HTML structure intact while translating "Prompt Structure" to simplified Chinese, you would write: ```html

提示结构:

``` This HTML snippet ensures that the text "Prompt Structure" is displayed in simplified Chinese within a paragraph (`

`) element.

Certainly! Here's the HTML structure with the translated text in simplified Chinese: ```html

当设计提示语时,重要的是以一种易于ChatGPT/Claude理解的方式来构建它们。这里是一个示例提示语结构:

```
  • Sure, here's the text "Task Description" translated into simplified Chinese while maintaining HTML structure: ```html

    任务描述

    ```
  • 在保留HTML结构的情况下,将以下英文文本翻译为简体中文: 格式化说明
  • To translate "Existing Code Context" into simplified Chinese while keeping the HTML structure, you can use the following: ```html 现有代码上下文 ``` This HTML snippet ensures that the text "现有代码上下文" (which means "Existing Code Context" in simplified Chinese) is marked with the appropriate language attribute (`lang="zh-CN"`) for clarity and correctness.

Sure, here's the text translated into simplified Chinese while keeping the HTML structure: ```html 这里是示例完整提示: ```

You are tasked to implement a feature. Instructions are as follows:

Using React and the native fetch JavaScript API, Fetch the list the users from the API endpoint https://jsonplaceholder.typicode.com/users and display all of their attributes in the Users component provided further below.

Instructions for the output format:
- Output code without descriptions, unless it is important.
- Provide comments only for intricate or non-obvious code segments
- Capitalize SQL special words and function names

Existing code base:
import React, { useState, useEffect } from 'react';

const Users = () => {
const [users, setUsers] = useState([]);

return (
<div>
<h2>Users List</h2>
</div>
);
};

export default Users;

2024-07-04 04:44:08 AI中文站翻译自原文