A code generation method includes: after receiving a code generation request that carries a first question and is sent by the terminal device, the cloud computing platform decomposes the first question to obtain a step of resolving the first question; then, the cloud computing platform searches a code knowledge base based on each step in the step of resolving the first question, to obtain code knowledge matching each step; and finally, the cloud computing platform inputs each step in the step of resolving the first question and the code knowledge matching each step into a code generation model, to obtain code generated by the code generation model, and sends the code to the terminal device, for the terminal device to present the code.
Full Text
What is claimed is: