The invention discloses a ChatGPT-python
programming method, particularly relates to the field of
artificial intelligence, and comprises three steps of problem definition,
algorithm design and code implementation. According to the method, project situations are described in detail through question definition, and ChatGPT is guided to generate project
schematic diagrams; through a design
algorithm, a calculation problem is elaborated, and ChatGPT is required to provide an
effective solution; by implementing codes, generating a feasible
programming solution according to a calculation theory, providing intelligent suggestions in each process, ensuring theoretical accuracy and
engineering feasibility of a result through manual examination, and comparing by taking three-dimensional
slope stability analysis as a case and combining with a calculation result of
commercial software, a calculation result of the three-dimensional
slope stability analysis is obtained. It is verified that the Python
algorithm obtained through ChatGPT
programming has good calculation precision, an innovative auxiliary means is provided for
engineering calculation, and the huge application prospect of
artificial intelligence in the field of
civil engineering is shown.