Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一些使用中发现的技巧 #6

Open
luo-zi opened this issue Dec 9, 2022 · 1 comment
Open

一些使用中发现的技巧 #6

luo-zi opened this issue Dec 9, 2022 · 1 comment

Comments

@luo-zi
Copy link

luo-zi commented Dec 9, 2022

在我的使用中发现, 对chatGPT要求使用xx语言实现时可以通过这样的文本来引导其写法:

  • 请使用索引
  • 请使用xxxxxx这种思路
  • 在生成代码后请进行代码逻辑检查和路径覆盖测试, 若存在与题意不符则修正代码
  • 仅输出JS代码 (这个个人认为非常有用, 生成前端网页的代码时可以避免大量输出)
@luo-zi
Copy link
Author

luo-zi commented Dec 9, 2022

第三条可以更精确化用语: 生成代码后进行逻辑检查和路径覆盖测试, 当检查或测试结果与题意不符时, 修正代码以符合题意
同时不建议大量使用路径覆盖测试, 可以考虑替换为"判断测试"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant