Information processing method, device, electronic device, and computer-readable storage medium
By acquiring and generating program difference information, the problem of high error rate in manual recording in large software projects is solved, and automated program difference information statistics and file generation are achieved, thereby improving efficiency and accuracy.
Patent Information
- Application Number
- CN202210771586.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2042-06-30
AI Technical Summary
In large-scale software projects, due to the multiple revisions of program codes, the existing method of manually recording and counting program difference information is prone to errors and consumes a lot of manpower, resulting in high error rates and high labor costs.
By acquiring program difference information generated by modification operations of the target program, including code difference information and modification operation information, a program modification file is automatically generated, and automatic statistics and recording are performed using information processing devices and electronic devices.
It improves the statistical accuracy and efficiency of program difference information, saves labor costs, and facilitates the storage and transmission of program modification files.
Smart Images

Figure CN115061723B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to an information processing method, device, electronic device, and computer-readable storage medium. Background Art
[0002] In the field of software development technology, during the development of large-scale software projects, such as large-scale application code writing and compilation projects, project developers often make multiple modifications and edits to the code. During this process, it is necessary to record and compile the details of the code modifications, such as the type of modifications made and the differences between the code before and after the modifications. In related technologies, recording and compiling these operations are usually done manually. However, large-scale software projects involve a large number of modifications, and manually performing these recording and compiling operations results in a high error rate and consumes a lot of manpower, increasing labor costs. Summary of the Invention
[0003] The purpose of this application is to solve at least one of the above technical deficiencies, especially the technical defect of a high error rate in program information statistics.
[0004] According to one aspect of the present application, there is provided an information processing method, the method comprising:
[0005] Acquiring program difference information generated by a modification operation of a target program; wherein the program difference information includes at least one of code difference information and modification operation information;
[0006] A program modification file is generated according to the program difference information.
[0007] Optionally, obtaining program difference information generated by the modification operation of the target program includes:
[0008] Obtaining target text information corresponding to the modification operation;
[0009] The program difference information is obtained based on the target text information.
[0010] Optionally, obtaining target text information corresponding to at least two modification operations includes at least one of the following:
[0011] Obtain the target text information corresponding to the first modification operation and the last modification operation within the target time period;
[0012] Obtaining target text information corresponding to a first modification operation and a second modification operation respectively having adjacent operation sequences, wherein the operation sequence is determined based on modification times corresponding to the modification operations;
[0013] Target text information corresponding to at least two modification operations on the target program module is obtained.
[0014] Optionally, the modification operation includes at least two times,
[0015] The obtaining of target text information corresponding to the modification operation includes:
[0016] Determining whether modification paths corresponding to at least two modification operations are the same;
[0017] If they are the same, obtaining target text information corresponding to at least two modification operations under the same modification path;
[0018] If different, for each modification operation, obtain the target text information under all modification paths respectively.
[0019] Optionally, obtaining the program difference information based on the target text information includes:
[0020] Comparing the original text information of the target program with the target text information to obtain the program difference information;
[0021] or
[0022] The target text information corresponding to at least two modification operations is compared to obtain the program difference information.
[0023] Optionally, the program modification file includes at least one of a hypertext markup language file and a table file;
[0024] The target text information includes at least one of program code information corresponding to the modification operation and modification operation information.
[0025] According to another aspect of the present application, there is provided an information processing device, the device comprising:
[0026] An information acquisition module, configured to acquire program difference information generated by a modification operation of a target program; wherein the program difference information includes at least one of code difference information and modification operation information;
[0027] The file generation module is used to generate a program modification file according to the program difference information.
[0028] Optionally, the information acquisition module is specifically used to:
[0029] Obtaining target text information corresponding to at least two modification operations respectively;
[0030] The program difference information is obtained based on the target text information.
[0031] According to another aspect of the present application, an electronic device is provided, the electronic device comprising:
[0032] one or more processors;
[0033] Memory;
[0034] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the information processing method described in any one of the first aspects of the present application.
[0035] For example, a third aspect of the present application provides a computing device, including: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;
[0036] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the information processing method shown in the first aspect of the present application.
[0037] According to another aspect of the present application, a computer-readable storage medium is provided, and when the computer program is executed by a processor, the information processing method described in any one of the first aspects of the present application is implemented.
[0038] For example, the fourth aspect of the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the information processing method shown in the first aspect of the present application is implemented.
[0039] According to one aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the first aspect described above.
[0040] The beneficial effects of the technical solution provided by this application are:
[0041] In an embodiment of the present application, program difference information generated by a modification operation of a target program is obtained; a program modification file is generated based on the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information.
[0042] The embodiments of the present application utilize electronic equipment to automatically collect and tally program difference information generated by modification operations within target program information, and generate a program modification file from the program difference information. Compared to the related art, which manually records and tallies program difference information, a manual recording and tallying method prone to errors and low efficiency, the present application achieves improved accuracy and efficiency in tallying program difference information through automation, saving labor costs. Furthermore, based on the resulting program modification file, it facilitates operations such as saving, reading, and transmitting the program difference information. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments of the present application.
[0044] Figure 1 A schematic diagram of the system architecture of an information processing method provided in an embodiment of the present application;
[0045] Figure 2 A flowchart of an information processing method provided in an embodiment of the present application;
[0046] Figure 3 A flowchart of an information processing method provided in an embodiment of the present application;
[0047] Figure 4 A schematic diagram of an application scenario of an information processing method provided in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of the structure of an electronic device for information processing provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] The following describes the embodiments of the present application in conjunction with the accompanying drawings. It should be understood that the embodiments described below in conjunction with the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0051] Those skilled in the art will understand that, unless otherwise stated, the singular forms "a", "an", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements, and / or components, but do not exclude implementation as other features, information, data, steps, operations, elements, components, and / or combinations thereof supported by the present technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the element can be directly connected or coupled to the other element, or it can refer to the element and the other element establishing a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here can include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".
[0052] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0053] For large-scale software projects (such as those involving the writing and compilation of program code for large applications), developers often make multiple modifications to the code during development. During this process, it is necessary to record and tally the modifications made to the code and the differences between the code before and after the modifications. In the related art, this recording and tallying process is typically performed manually. However, large-scale software projects involve numerous modifications, and manually performing such recording and tallying is labor-intensive and prone to errors.
[0054] Therefore, the information processing method, device, electronic device and computer-readable storage medium provided in this application are intended to solve the above technical problems of the prior art.
[0055] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0056] First combine Figure 1 , which is a system architecture diagram of the information processing method provided in an embodiment of the present application. The system may include a server 101 and a terminal cluster, wherein the server 101 can be considered as a background server for information processing.
[0057] The terminal cluster may include: terminal 102, terminal 103, terminal 104, ..., wherein a client supporting image display is installed in each terminal. Communication connections may exist between the terminals, for example, a communication connection exists between terminal 102 and terminal 103, and a communication connection exists between terminal 103 and terminal 104.
[0058] At the same time, server 101 can provide services for the terminal cluster through the communication connection function. Any terminal in the terminal cluster can have a communication connection with server 101. For example, there is a communication connection between terminal 102 and server 101, and there is a communication connection between terminal 103 and server 101. The above-mentioned communication connection does not limit the connection method, and can be directly or indirectly connected through wired communication, directly or indirectly connected through wireless communication, or through other methods.
[0059] The network for the communication connection can be a wide area network or a local area network, or a combination of the two. This application does not limit this.
[0060] The information processing method of the embodiment of the present application can be executed on the server side or on the terminal side, and the execution subject is not limited in the embodiment of the present application. The method provided in the embodiment of the present application can be executed by a computer device, and the computer device includes but is not limited to a terminal (including the above-mentioned user terminal) or a server (including the above-mentioned server 101). The above-mentioned server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The above-mentioned terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0061] Of course, the method provided in the embodiment of the present application is not limited to Figure 1 The application scenarios shown can also be used in other possible application scenarios, and the embodiments of the present application are not limited thereto. Figure 1 The functions that can be implemented by each device in the application scenario shown will be described in subsequent method embodiments and will not be described in detail here.
[0062] The embodiment of the present application provides a possible implementation method, which can be executed by any electronic device. Optionally, any electronic device can be a server device with information processing capabilities, or a device or chip integrated in these devices. Figure 2 As shown, it is one of the flow charts of an information processing method provided in an embodiment of the present application, and the method includes the following steps:
[0063] Step S201: Obtain program difference information generated by a modification operation of a target program, wherein the program difference information includes at least one of code difference information and modification operation information.
[0064] Optionally, the embodiments of the present application can be applied to the field of computer technology; for example, they can be specifically applied to application scenarios in which modification operations are performed on a target program.
[0065] The program difference information is the difference information generated by the modification operation on the target program; optionally, in an embodiment of the present application, the program difference information can be the difference information generated by at least two modification operations of the target program, or it can be the difference information generated by any modification operation compared with the program code information of the original version.
[0066] It can be understood that performing one modification operation on the target program will generate one version of program code information; at least two modification operations will generate at least two versions of program code information; program difference information can be obtained by comparing the at least two versions of program code information; program difference information can also be obtained by comparing the program code information of any modification operation with the program code information of the original version.
[0067] As an example, two modification operations are taken as an example: for example, the first program code information corresponding to the first modification operation (the first modification operation can be one of the two modification operations) is AABB; the second program code information corresponding to the second modification operation (the second modification operation can be the other of the two modification operations) is AACC; by comparing the first program code information AABB with the second program code information AACC, the program difference information can be obtained, that is, the third and fourth bits of the program code are changed from "BB" to "CC".
[0068] It should be noted that, in the embodiment of the present application, the at least two modification operations may be at least two adjacent modification operations, or at least two non-adjacent modification operations, wherein the operation order between the at least two modification operations may be determined based on the modification time corresponding to the modification operations.
[0069] As described above, the program difference information may include code difference information, which is the difference information generated by modifying the program code information. In addition, the program difference information may also include modification operation information. The modification operation information may include information such as modification time and modification personnel.
[0070] In an embodiment of the present application, when acquiring program difference information, the program difference information may be obtained based on the target text information by acquiring target text information corresponding to the modification operation.
[0071] The target text information may record the program code information of the current modification operation as well as modification operation information such as modification time and modification personnel.
[0072] In addition, in order to achieve a more intuitive recording of modification operations and a more convenient acquisition of the target text information of the modification operations, in some embodiments, nodes can be established for the modification operations; for example, each modification operation can correspond to a node, and the node corresponds one-to-one with the target text information of this modification operation. As an example, for example, the first modification operation corresponds to node 1, and node 1 corresponds to the first target text information; the second modification operation corresponds to node 2, and node 2 corresponds to the second target text information; in this way, when obtaining the target text information corresponding to the modification operation, the corresponding target text information can be conveniently obtained by determining the node corresponding to the modification operation, thereby improving the convenience of obtaining the target text information.
[0073] Step S202: Generate a program modification file according to the program difference information.
[0074] In the embodiment of the present application, after the program difference information is obtained, a program modification file may be generated based on the program difference information. In other words, the program modification file is a file that records the program difference information.
[0075] The program modification file may be a file in a format such as a hypertext markup language file or a table file.
[0076] In the embodiment of the present application, the program difference information is generated into a program modification file, which facilitates the storage, reading and transmission of the program difference information.
[0077] In summary, in an embodiment of the present application, program difference information generated by a modification operation of a target program is obtained; a program modification file is generated based on the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. An embodiment of the present application uses an electronic device to automatically count the program difference information generated by the modification operation in the target program information, and generates a program modification file from the program difference information. Compared with the related art, the manual recording and counting of program difference information is prone to errors and has low efficiency; the present application achieves improved accuracy and efficiency in counting program difference information through an automated method, saves labor costs, and facilitates operations such as saving, reading, and transmitting program difference information based on the ultimately generated program modification file.
[0078] In one embodiment of the present application, obtaining program difference information generated by the modification operation of the target program includes:
[0079] Obtaining target text information corresponding to the modification operation;
[0080] The program difference information is obtained based on the target text information.
[0081] In an embodiment of the present application, when obtaining program difference information generated by a modification operation of a target program, the program difference information can be obtained based on the target text information by obtaining target text information corresponding to the modification operation.
[0082] The target text information may record the program code information of the current modification operation as well as modification operation information such as modification time and modification personnel.
[0083] In addition, in order to achieve a more intuitive recording of modification operations and a more convenient acquisition of the target text information of the modification operations, in some embodiments, nodes can be established for the modification operations; for example, each modification operation can correspond to a node, and the node corresponds one-to-one with the target text information of this modification operation. As an example, for example, the first modification operation corresponds to node 1, and node 1 corresponds to the first target text information; the second modification operation corresponds to node 2, and node 2 corresponds to the second target text information; in this way, when obtaining the target text information corresponding to the modification operation, the corresponding target text information can be conveniently obtained by determining the node corresponding to the modification operation, thereby improving the convenience of obtaining the target text information.
[0084] In one embodiment of the present application, obtaining target text information corresponding to the modification operation includes at least one of the following:
[0085] Obtain the target text information corresponding to the first modification operation and the last modification operation within the target time period;
[0086] Obtaining target text information corresponding to a first modification operation and a second modification operation respectively having adjacent operation sequences, wherein the operation sequence is determined based on modification times corresponding to the modification operations;
[0087] Target text information corresponding to at least two modification operations on the target program module is obtained.
[0088] In actual scenarios, the modification operations involved in the embodiments of this application may include the following situations:
[0089] Case 1: The modification operation can be the first modification operation and the last modification operation within the target time period. For example, if the target time period is from 8:00 AM to 8:00 PM, then the first modification operation and the last modification operation within the time period can be determined to be at least two modification operations.
[0090] Case 2: The modification operations may be two modification operations that are performed in adjacent order. For example, one modification operation is performed at 8 o'clock, and the other modification operation is performed at 9 o'clock (there is no other modification operation between the two modification operations).
[0091] Case 3: The modification operation can also be a modification operation on the target program module. For example, a label can be added to the node corresponding to the modification operation to identify the modified program module. For example, the modification operations corresponding to nodes 1 and 5 can be identified as modification operations performed on target program module A. In this way, it can be determined that the modification operations corresponding to nodes 1 and 5 are at least two modification operations in the embodiment of the present application.
[0092] Case 4: The modification operation may also be a randomly determined modification operation.
[0093] The above situations are just a few examples. The embodiments of the present application may also include other couples that can be implemented, and there is no limitation on this.
[0094] In one embodiment of the present application, the modification operation includes at least two times,
[0095] The obtaining of target text information corresponding to the modification operation includes:
[0096] Determining whether modification paths corresponding to at least two modification operations are the same;
[0097] If they are the same, obtaining target text information corresponding to at least two modification operations under the same modification path;
[0098] If different, for each modification operation, obtain the target text information under all modification paths respectively.
[0099] Specifically, the modification paths corresponding to at least two modification operations may be determined. Optionally, the modification path may be determined based on the version number of the program code information. For example, performing a modification operation on the target program will generate a version of program code information. Each version of the program code information may correspond to a version number, and each version number may correspond to a modification path.
[0100] As an example, in the embodiment of the present application, the modification path may be a path having a tree-branching structure. For example, the modification path may be drive D - first main file - first sub-file - module a, or the modification path may be drive D - second main file - third sub-file - module m, or the modification path may be drive E - fourth main file - fifth sub-file - module n, and so on.
[0101] When obtaining the target text information corresponding to the modification operation, it is possible to first compare step by step whether the modification paths corresponding to the two modification operations are the same.
[0102] For example, let's take the example of two modification operations, where modification path 1 corresponds to drive D - first main file - first subfile - module a, and modification path 2 corresponds to drive D - second main file - third subfile - module m. First, the first-level paths of modification paths 1 and 2 can be compared, i.e., the first-level paths of both modification paths are drive D. Then, the second-level paths of modification paths 1 and 2 can be compared, i.e., the second-level path of modification path 1 is the first main file, the second-level path of modification path 2 is the second main file, and so on. In this way, a level-by-level comparison can determine whether the modification paths corresponding to at least two modification operations are the same.
[0103] If they are the same, obtain the target text information corresponding to at least two modification operations under the same modification path.
[0104] If different, for each modification operation, obtain the target text information under all modification paths respectively.
[0105] Specifically, if the modification paths corresponding to the two modification operations are different, such as the modification path 1 of one modification operation is D drive-first main file-first sub-file-a module, and the modification path 2 of the other modification operation is D drive-second main file-third sub-file-m module, then the target text information of modification path 1 and the target text information of modification path 2 can be obtained for each modification operation.
[0106] In one embodiment of the present application, obtaining the program difference information based on the target text information includes:
[0107] Comparing the original text information of the target program with the target text information to obtain the program difference information;
[0108] or
[0109] The target text information corresponding to at least two modification operations is compared to obtain the program difference information.
[0110] It can be understood that performing one modification operation on the target program will generate one version of program code information; at least two modification operations will generate at least two versions of program code information; program difference information can be obtained by comparing at least two versions of program code information; program difference information can also be obtained by comparing the program code information of any modification operation with the program code information of the original version (i.e., original text information).
[0111] In an embodiment of the present application, program difference information generated by the modification operation of the target program is obtained; a program modification file is generated based on the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. In an embodiment of the present application, an electronic device is used to automatically count the program difference information generated by the modification operation in the target program information, and generate a program modification file from the program difference information. Compared with the related art, the manual recording and counting of program difference information is prone to errors and has low efficiency; the present application improves the accuracy and efficiency of counting program difference information through an automated method, saves labor costs, and based on the finally generated program modification file, facilitates operations such as saving, reading and transmitting the program difference information.
[0112] Below through Figure 3 and Figure 4 The application scenarios of the embodiments of this application are described as follows:
[0113] Combine Figure 3 As shown, in an embodiment of the present application, two code information nodes can be obtained through the code node information warehouse, wherein each code information node corresponds to a modification operation; then, multiple code information nodes between the two code information nodes are determined; further, the code corresponding to the code information node is obtained from the background code warehouse, and the code is compared to generate comparison data; through the output format file framework, the comparison data is generated into a release file (i.e., the program modification file of the present application) and output.
[0114] Combine Figure 4 As shown, Figure 4 This is a software delivery scenario process; in this scenario, the automatic code change generation component executes the method of the embodiment of the present application. Specifically, program code information is passed through the delivery pipeline to the automatic code change generation component, which generates program modification files. The program modification files are then passed to the automatic delivery component, which delivers the program modification files to the customer.
[0115] In an embodiment of the present application, program difference information generated by the modification operation of the target program is obtained; a program modification file is generated based on the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. In an embodiment of the present application, an electronic device is used to automatically count the program difference information generated by the modification operation in the target program information, and generate a program modification file from the program difference information. Compared with the related art, the manual recording and counting of program difference information is prone to errors and has low efficiency; the present application improves the accuracy and efficiency of counting program difference information through an automated method, saves labor costs, and based on the finally generated program modification file, facilitates operations such as saving, reading and transmitting the program difference information.
[0116] The embodiment of the present application provides an information processing device, such as Figure 5 As shown, the information processing device 50 may include: an information acquisition module 501, a file generation module 502, wherein:
[0117] An information acquisition module 501 is configured to acquire program difference information generated by a modification operation of a target program; wherein the program difference information includes at least one of code difference information and modification operation information;
[0118] The file generation module 502 is configured to generate a program modification file according to the program difference information.
[0119] In one embodiment of the present application, the information acquisition module is specifically configured to:
[0120] Obtaining target text information corresponding to the modification operation;
[0121] The program difference information is obtained based on the target text information.
[0122] In one embodiment of the present application, the information acquisition module is specifically configured to:
[0123] Obtain the target text information corresponding to the first modification operation and the last modification operation within the target time period;
[0124] Obtaining target text information corresponding to a first modification operation and a second modification operation respectively having adjacent operation sequences, wherein the operation sequence is determined based on modification times corresponding to the modification operations;
[0125] Target text information corresponding to at least two modification operations on the target program module is obtained.
[0126] In one embodiment of the present application, the file generation module is specifically used to:
[0127] Determining whether modification paths corresponding to at least two modification operations are the same;
[0128] If they are the same, obtaining target text information corresponding to at least two modification operations under the same modification path;
[0129] If different, for each modification operation, obtain the target text information under all modification paths respectively.
[0130] In one embodiment of the present application, the information acquisition module is specifically configured to:
[0131] Comparing the original text information of the target program with the target text information to obtain the program difference information;
[0132] or
[0133] The target text information corresponding to at least two modification operations is compared to obtain the program difference information.
[0134] In one embodiment of the present application, the program modification file includes at least one of a hypertext markup language file and a table file;
[0135] The target text information includes at least one of program code information corresponding to the modification operation and modification operation information.
[0136] The device of the embodiment of the present application can execute the method provided by the embodiment of the present application, and its implementation principle is similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, and will not be repeated here.
[0137] In an embodiment of the present application, program difference information generated by the modification operation of the target program is obtained; a program modification file is generated based on the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. In an embodiment of the present application, an electronic device is used to automatically count the program difference information generated by the modification operation in the target program information, and generate a program modification file from the program difference information. Compared with the related art, the manual recording and counting of program difference information is prone to errors and has low efficiency; the present application improves the accuracy and efficiency of counting program difference information through an automated method, saves labor costs, and based on the finally generated program modification file, facilitates operations such as saving, reading and transmitting the program difference information.
[0138] An electronic device is provided in an embodiment of the present application, which includes: a memory and a processor; at least one program stored in the memory for being executed by the processor. Compared with the prior art, the following can be achieved: in an embodiment of the present application, program difference information generated by the modification operation of the target program is obtained; a program modification file is generated according to the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. In an embodiment of the present application, the program difference information generated by the modification operation in the target program information is automatically counted by the electronic device, and a program modification file is generated from the program difference information. Compared with the related art, the program difference information is manually recorded and counted, which is prone to errors and has low efficiency; the present application improves the accuracy and efficiency of statistical program difference information through an automated method, saves labor costs, and based on the finally generated program modification file, facilitates operations such as saving, reading and transmitting the program difference information.
[0139] In an alternative embodiment, an electronic device is provided, such as Figure 6 As shown, Figure 6 The electronic device 4000 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data exchange between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the number of transceivers 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0140] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0141] Bus 4002 may include a path for transmitting information between the above components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. Bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0142] The memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0143] The memory 4003 is used to store the application code (computer program) for executing the solution of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement the content shown in the above method embodiment.
[0144] Electronic devices include but are not limited to mobile phones, laptops, multimedia players, desktop computers, etc.
[0145] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer-readable storage medium is run on a computer, the computer can execute the corresponding contents of the aforementioned method embodiment.
[0146] In an embodiment of the present application, program difference information generated by the modification operation of the target program is obtained; a program modification file is generated based on the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. In an embodiment of the present application, an electronic device is used to automatically count the program difference information generated by the modification operation in the target program information, and generate a program modification file from the program difference information. Compared with the related art, the manual recording and counting of program difference information is prone to errors and has low efficiency; the present application improves the accuracy and efficiency of counting program difference information through an automated method, saves labor costs, and based on the finally generated program modification file, facilitates operations such as saving, reading and transmitting the program difference information.
[0147] The terms "first," "second," "third," "fourth," "1," "2," and the like (if any) in the specification and claims of this application and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequential sequence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the application described herein can be implemented in an order other than that shown or described in the drawings.
[0148] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the order of implementation of these steps is not limited to the order indicated by the arrows. Unless otherwise clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart can include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage in these sub-steps or stages can also be executed at different times respectively. Under different scenarios at the execution time, the execution order of these sub-steps or stages can be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0149] The above description is only an optional implementation method for some implementation scenarios of this application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of this application, the use of other similar implementation methods based on the technical ideas of this application also falls within the protection scope of the embodiments of this application.
Claims
1. An information processing method, characterized in that: include: Obtaining nodes corresponding to a modification operation of a target program, each node corresponding one-to-one to a modification path of target text information corresponding to the modification operation, wherein the modification path is a path having a tree-like branching structure; According to the modification path corresponding to each node, obtaining target text information corresponding to the modification operation from the hardware of the electronic device, the target text information including program code information; Comparing the differences between the target text information to obtain program difference information; wherein the program difference information includes at least one of code difference information and modification operation information; A program modification file is generated according to the program difference information.
2. The information processing method according to claim 1, wherein: The acquiring of target text information corresponding to the modification operation includes at least one of the following: Obtain the target text information corresponding to the first modification operation and the last modification operation within the target time period; Obtaining target text information corresponding to a first modification operation and a second modification operation respectively having adjacent operation sequences, wherein the operation sequence is determined based on modification times corresponding to the modification operations; Target text information corresponding to at least two modification operations on the target program module is obtained.
3. The information processing method according to claim 1, wherein: The modification operation includes at least two times, The obtaining of target text information corresponding to the modification operation includes: Determining whether modification paths corresponding to at least two modification operations are the same; If they are the same, obtaining target text information corresponding to at least two modification operations under the same modification path; If different, for each modification operation, obtain the target text information under all modification paths respectively.
4. The information processing method according to claim 1, wherein: Obtaining the program difference information based on the target text information includes: Comparing the original text information of the target program with the target text information to obtain the program difference information; or The target text information corresponding to at least two modification operations is compared to obtain the program difference information.
5. The information processing method according to any one of claims 1 to 4, characterized in that: The program modification file includes at least one of a hypertext markup language file and a table file; The target text information includes at least one of program code information corresponding to the modification operation and modification operation information.
6. An information processing device, characterized in that include: An information acquisition module, configured to acquire nodes corresponding to a modification operation of a target program, each node corresponding to a modification path of target text information corresponding to the modification operation, wherein the modification path is a path having a tree-like branching structure; According to the modification path corresponding to each node, obtaining target text information corresponding to the modification operation from the hardware of the electronic device, the target text information including program code information; Comparing the differences between the target text information to obtain program difference information; wherein the program difference information includes at least one of code difference information and modification operation information; The file generation module is used to generate a program modification file according to the program difference information.
7. An electronic device, characterized in that: The electronic device comprises: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the information processing method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the information processing method according to any one of claims 1 to 5 is implemented.