The embodiment of the invention provides a
code conversion method and device, a storage medium and a program product. In the
code conversion method, a
code acquisition operation can be responded, an initial code of a target
function object written in a first
programming language is acquired, and knowledge information required for converting the initial code into a target code written in a second
programming language is acquired in a target
knowledge base. And calling a
code conversion model, and converting the initial code according to the knowledge information to obtain a target code. Wherein the knowledge information at least comprises functional attribute information and / or
programming knowledge information of the target functional object, so that the code conversion model can learn or supplement specific
domain knowledge required for converting an initial code written in a first
programming language into a target code written in a second
programming language, and the target code written in the second
programming language can be converted by utilizing the specific
domain knowledge. The initial code is converted into the target code meeting the requirement, so that the dependence of the code conversion operation on manpower is greatly reduced, and the cost of the code conversion operation is reduced.