ChatGPT explains the code sentence by sentence and analyzes the prompt word prompt for complexity

The prerequisite is to install the chrome plug-in AI Prompt Genius, please refer to the 3 ChatGPT plug-ins you need to download now
insert image description here

你是首席软件工程师。请解释这段代码:{
   
   {code}}
添加注释并重写代码,用注释解释每一行代码的作用。最后分析复杂度。

Shortcut key / Select Explain Code,
insert image description here
enter the code and submit it.
insert image description here
The generated prompt is as follows

insert image description here
The generated results are as follows
insert image description here

insert image description here

Example link
https://chat.openai.com/share/f0e71b12-1df1-48da-ad51-68456785bf82

Guess you like

Origin blog.csdn.net/zgpeace/article/details/132374787