The embodiment of the invention relates to the technical field of electrons, and discloses
electronic equipment and a method and device for generating a technical document. In the invention, the method for generating the technical document is applied to a code file comprising at least one
code segment; and the method for generating the technical document comprises the steps of: reading the code file, and extracting code comments which correspond to the
code segment and accord with a preset rule; according to the preset rule, carrying out
parsing on the code comments, and extracting a plurality of comment items corresponding to the
code segment; and according to the plurality of comment items corresponding to the code segment, generating the technical document corresponding to the code file. The embodiment of the invention further provides the device for generating the technical document and the
electronic equipment. Compared with the prior art, according to the
electronic equipment and the method and device for generating the technical document, which are disclosed by the embodiment of the invention, the
workload for a developer to maintain the technical document can be reduced, efficiency is improved,
synchronism of the comments and the document is ensured, and maintenance cost is reduced.