CN115061723A - Information processing method, information processing device, electronic equipment and computer readable storage medium - Google Patents

Information processing method, information processing device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN115061723A
CN115061723A CN202210771586.6A CN202210771586A CN115061723A CN 115061723 A CN115061723 A CN 115061723A CN 202210771586 A CN202210771586 A CN 202210771586A CN 115061723 A CN115061723 A CN 115061723A
Authority
CN
China
Prior art keywords
program
modification
information
difference information
target text
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210771586.6A
Other languages
Chinese (zh)
Inventor
杜普
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Eswin Computing Technology Co Ltd
Haining Eswin IC Design Co Ltd
Original Assignee
Beijing Eswin Computing Technology Co Ltd
Haining Eswin IC Design Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Eswin Computing Technology Co Ltd, Haining Eswin IC Design Co Ltd filed Critical Beijing Eswin Computing Technology Co Ltd
Priority to CN202210771586.6A priority Critical patent/CN115061723A/en
Publication of CN115061723A publication Critical patent/CN115061723A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides an information processing method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of computers. The method comprises the following steps: acquiring program difference information generated by modification operation of a target program; and generating a program modification file according to the program difference information. According to the embodiment of the application, program difference information generated by modification operation in target program information is automatically counted through the electronic equipment, and the program difference information is generated into a program modification file. Compared with the related art, program difference information is manually recorded and counted, and the manual recording and counting mode is prone to errors and low in efficiency; according to the method and the device, the accuracy and the efficiency of counting the program difference information are improved in an automatic mode, the labor cost is saved, and the operations of saving, reading, transmitting and the like of the program difference information are facilitated based on the finally generated program modification file.

Description

Information processing method, information processing device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information processing method, an information processing apparatus, an electronic device, and a computer-readable storage medium.
Background
In the technical field of software development, in the development process of a large-scale software project, the project developer usually modifies and edits program codes for many times, for example, the program codes of a large-scale application program are written and compiled; in this process, it is necessary to record and count the details of modifications to the program code, such as what modifications have been made and differences between the program code before and after the modification operation. In the related art, the recording and statistical operations are generally performed manually; however, the modification operations involved in the large-scale software project are many, the manual recording and statistics operations result in a high error rate, a large amount of manpower is consumed, and the labor cost is increased.
Disclosure of Invention
The present application aims to solve at least one of the above technical drawbacks, in particular, the technical drawback of high error rate of program information statistics.
According to an aspect of the present application, there is provided an information processing method including:
acquiring program difference information generated by modification operation of a target program; wherein the program difference information comprises at least one of code difference information and modification operation information;
and generating a program modification file according to the program difference information.
Optionally, the obtaining program difference information generated by the modification operation of the target program includes:
acquiring target text information corresponding to the modification operation;
and obtaining the program difference information based on the target text information.
Optionally, the obtaining of the target text information corresponding to the at least two modification operations includes at least one of the following:
acquiring target text information corresponding to the first modification operation and the last modification operation in a target time period;
acquiring target text information respectively corresponding to a first modification operation and a second modification operation which are adjacent to an operation sequence, wherein the operation sequence is determined based on modification time corresponding to the modification operations;
and acquiring target text information corresponding to at least two times of modification operations of the target program module.
Optionally, the modification operation comprises at least two times,
the acquiring of the target text information corresponding to the modification operation includes:
determining whether modification paths respectively corresponding to at least two times of modification operations are the same;
if the target text information is the same as the target text information, acquiring target text information corresponding to at least two times of modification operations under the same modification path;
and if the modification paths are different, respectively acquiring the target text information under all the modification paths for each modification operation.
Optionally, 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 program difference information;
or
And comparing the target text information respectively corresponding to at least two times of modification operations to obtain the program difference information.
Optionally, the program modification file includes at least one of a hypertext markup language file and a table file;
the target text information comprises at least one of program code information and modification operation information corresponding to the modification operation.
According to another aspect of the present application, there is provided an information processing apparatus including:
the information acquisition module is used for acquiring program difference information generated by modification operation of a target program; wherein the program difference information comprises at least one of code difference information and modification operation information;
and the file generation module is used for generating a program modification file according to the program difference information.
Optionally, the information obtaining module is specifically configured to:
acquiring target text information respectively corresponding to at least two times of modification operations;
and obtaining the program difference information based on the target text information.
According to another aspect of the present application, there is provided an electronic device including:
one or more processors;
a memory;
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, the one or more programs configured to: the information processing method according to any one of the first aspect of the present application is executed.
For example, in a third aspect of the present application, there is provided a computing device comprising: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the corresponding operation of the information processing method as shown in the first aspect of the application.
According to still another aspect of the present application, there is provided a computer-readable storage medium, which when executed by a processor, implements the information processing method of any one of the first aspects of the present application.
For example, in a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the information processing method shown in the first aspect of the present application.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method provided in the various alternative implementations of the first aspect described above.
The beneficial effect that technical scheme that this application provided brought is:
in the embodiment of the application, program difference information generated by modification operation of a target program is acquired; generating a program modification file according to the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information.
According to the embodiment of the application, program difference information generated by modification operation in target program information is automatically counted through the electronic equipment, and the program difference information is generated into a program modification file. Compared with the related art, program difference information is manually recorded and counted, and the manual recording and counting mode is prone to errors and low in efficiency; according to the method and the device, the accuracy and the efficiency of counting the program difference information are improved in an automatic mode, the labor cost is saved, and the operations of saving, reading, transmitting and the like of the program difference information are facilitated based on the finally generated program modification file.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic system architecture diagram of an information processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an information processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an information processing method according to an embodiment of the present application;
fig. 4 is a schematic view of an application scenario of an information processing method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an information processing electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the embodiments set forth below in connection with the drawings are exemplary descriptions for explaining technical solutions of the embodiments of the present application, and do not limit the technical solutions of the embodiments of the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the terms "comprises" and/or "comprising," when used in this specification in connection with embodiments of the present application, specify the presence of stated features, information, data, steps, operations, elements, and/or components, but do not preclude the presence or addition of other features, information, data, steps, operations, elements, components, and/or groups thereof, as embodied in the art. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein indicates at least one of the items defined by the term, e.g., "a and/or B" may be implemented as "a", or as "B", or as "a and B".
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
For a large-scale software project (e.g., a large-scale software project such as a large-scale application program code compiling and compiling project), a developer usually performs multiple modification operations on a program code in a project development process; in the process, it is necessary to record and count what modifications have been made to the program code and the differences between the program code before and after the modification operation. In the related art, the related recording and statistical operations are usually performed manually; however, the modification operations involved in large software projects are numerous, the manual execution of the above-described logging and statistics operations is labor intensive, and manual execution of the operations is also prone to errors.
Therefore, the information processing method, apparatus, electronic device and computer-readable storage medium provided by the present application aim to solve the above technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. These several specific embodiments may be combined with each other below, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a system architecture diagram of an information processing method according to an embodiment of the present application. The system can comprise a server 101 and a terminal cluster, wherein the server 101 can be regarded as a background server for processing information.
The terminal cluster may include: a terminal 102, a terminal 103, and terminals 104 and … …, wherein the terminal is installed with a client supporting image display. There may be a communication connection between the terminals, for example, a communication connection between terminal 102 and terminal 103, and a communication connection between terminal 103 and terminal 104.
Meanwhile, the server 101 may provide a service for the terminal cluster through a communication connection function, and any terminal in the terminal cluster may have a communication connection with the server 101, for example, a communication connection exists between the terminal 102 and the server 101, and a communication connection exists between the terminal 103 and the server 101, where the communication connection is not limited to a connection manner, and may be directly or indirectly connected through a wired communication manner, may also be directly or indirectly connected through a wireless communication manner, and may also be through other manners.
The communicatively coupled network may be a wide area network or a local area network, or a combination thereof. The application is not limited thereto.
The information processing method in the embodiment of the present application may be executed on a server side or a terminal side, and the execution subject is not limited in the embodiment of the present application. The method provided by the embodiment of the present application may be executed by a computer device, which includes but is not limited to a terminal (also includes the above-mentioned user terminal) or a server (also includes the above-mentioned server 101). The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, middleware service, a domain name service, a security service, a CDN, a big data and artificial intelligence platform, and the like. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
Of course, the method provided in the embodiment of the present application is not limited to be used in the application scenario shown in fig. 1, and may also be used in other possible application scenarios, and the embodiment of the present application is not limited. The functions that can be implemented by each device in the application scenario shown in fig. 1 will be described in the following method embodiments, and will not be described in detail herein.
The embodiment of the present application provides a possible implementation manner, and the scheme may be executed by any electronic device, and optionally, any electronic device may be a server device having an information processing capability, or may also be a device or a chip integrated on these devices. As shown in fig. 2, which is a schematic flow chart of an information processing method provided in an embodiment of the present application, the method includes the following steps:
step S201: program difference information generated by a modification operation of the target program is acquired. Wherein the program difference information includes at least one of code difference information and modification operation information.
Optionally, the embodiment of the application can be applied to the technical field of computers; for example, the method can be applied to an application scenario in which a modification operation is performed on a target program.
The program difference information is difference information generated by modifying the target program; optionally, in this embodiment of the application, the program difference information may be difference information generated by at least two modification operations of the target program, or may be difference information generated by any one modification operation compared with the program code information of the original version.
It will be appreciated that a single modification operation on the target program will result in a single version of the program code information; at least two modification operations will produce at least two versions of program code information; program difference information can be obtained by comparing program code information of at least two versions; program difference information can also be obtained by comparing the program code information of any one modification operation with the program code information of the original version.
As an example, two modification operations are explained as an example: for example, the first program code information corresponding to the first modification operation (the first modification operation may be one modification operation of two modification operations) is AABB; the second program code information corresponding to the second modification operation (the second modification operation may be the other of the two modification operations) is AACC; the program difference information, that is, the third bit and the fourth bit of the program code are modified from "BB" to "CC", can be obtained by comparing the first program code information AABB with the second program code information AACC.
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 may be at least two non-adjacent modification operations. Wherein, the operation sequence between at least two modification operations can be determined based on the modification time corresponding to the modification operation.
As described above, the program difference information may include code difference information, which is difference information generated by performing a modification operation on the program code information. In addition, the program difference information may further include modification operation information. The modification operation information may include information of modification time, modification personnel, and the like.
In the embodiment of the application, when program difference information is acquired, the program difference information can be acquired based on the target text information by acquiring the target text information corresponding to the modification operation.
The target text information may record program code information of the current modification operation, modification time, modification personnel and other modification operation information.
In addition, in order to realize more intuitive recording modification operation and more conveniently acquire target text information of the modification operation, in some embodiments, a node can be established for the modification operation; for example, each modification operation may correspond to a node, and the node corresponds to the target text information of the current modification operation one to one. 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 a node 2, and the node 2 corresponds to second target text information; therefore, when the target text information corresponding to the modification operation is obtained, the corresponding target text information can be conveniently obtained by determining the node corresponding to the modification operation, and therefore the convenience of obtaining the target text information is improved.
Step S202: and generating a program modification file according to the program difference information.
In the embodiment of the present application, after the program difference information is acquired, a program modification file may be generated based on the program difference information. That is, the program modification file is a file in which program difference information is recorded.
The program modification file can be a file in a format such as a hypertext markup language file or a table file.
In the embodiment of the application, the program difference information is generated into the program modification file, so that the program difference information is convenient to store, read and transmit.
To sum up, in the embodiment of the present application, program difference information generated by a modification operation of a target program is obtained; generating a program modification file according to the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. According to the embodiment of the application, program difference information generated by modification operation in target program information is automatically counted through the electronic equipment, and the program difference information is generated into a program modification file. Compared with the related art, program difference information is manually recorded and counted, and the manual recording and counting mode is prone to errors and low in efficiency; according to the method and the device, the accuracy and the efficiency of counting the program difference information are improved in an automatic mode, the labor cost is saved, and the operations of saving, reading, transmitting and the like of the program difference information are facilitated based on the finally generated program modification file.
In an embodiment of the application, the obtaining program difference information generated by the modification operation of the target program includes:
acquiring target text information corresponding to the modification operation;
and obtaining the program difference information based on the target text information.
In the embodiment of the application, when program difference information generated by modification operation of a target program is acquired, the program difference information can be obtained based on target text information by acquiring the target text information corresponding to the modification operation.
The target text information may record program code information of the current modification operation, modification time, modification personnel and other modification operation information.
In addition, in order to realize more intuitive recording modification operation and more conveniently acquire target text information of the modification operation, in some embodiments, a node can be established for the modification operation; for example, each modification operation may correspond to a node, and the node corresponds to the target text information of the current modification operation one to one. 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 a node 2, and the node 2 corresponds to second target text information; therefore, when the target text information corresponding to the modification operation is obtained, the corresponding target text information can be conveniently obtained by determining the node corresponding to the modification operation, and therefore the convenience of obtaining the target text information is improved.
In an embodiment of the application, the obtaining of the target text information corresponding to the modification operation includes at least one of:
acquiring target text information corresponding to first modification operation and last modification operation in a target time period;
acquiring target text information respectively corresponding to a first modification operation and a second modification operation which are adjacent to an operation sequence, wherein the operation sequence is determined based on modification time corresponding to the modification operations;
and acquiring target text information corresponding to at least two times of modification operations of the target program module.
In practical scenarios, the modification operations involved in the embodiments of the present application may include the following cases:
the first condition is as follows: the modification operation may be a first modification operation and a last modification operation within a target time period. For example, the target time period is 8 o 'clock earlier to 8 o' clock later, then the first modification operation and the last modification operation within the time period may be determined to be at least two modification operations.
Case two: the modification operation may be two adjacent modification operations in the operation order. For example, one modification operation is a modification operation performed at 8 o 'clock, and the other modification operation is a modification operation performed at 9 o' clock (there is no other modification operation between the two modification operations).
Case three: the modification operation may also be a modification operation for the target program module. For example, a tag may be added to a node corresponding to the modification operation to identify the modified program module, such as, for example, identifying the modification operations corresponding to node 1 and node 5 as modification operations performed on the target program module a; thus, it can be determined that the modification operations corresponding to the node 1 and the node 5 are at least two modification operations in the embodiment of the present application.
Case four: the modification operation may also be a randomly determined modification operation.
The above cases are just examples, and other couples that can be implemented may be included in the embodiments of the present application, and the present application is not limited to these.
In one embodiment of the present application, the modifying operation comprises at least two,
the acquiring of the target text information corresponding to the modification operation includes:
determining whether modification paths respectively corresponding to at least two times of modification operations are the same;
if the target text information is the same as the target text information, acquiring target text information corresponding to at least two times of modification operations under the same modification path;
and if the modification paths are different, respectively acquiring the target text information under all the modification paths for each modification operation.
Specifically, at least two modification paths corresponding to the modification operations may be determined first. Alternatively, the modification path may be determined according to a version number of the program code information. For example, a modification operation performed on the target program will generate one version of program code information, where each version of program code information may correspond to one version number, and each version number corresponds to a modification path.
As an example, in the embodiment of the present application, the modified path may be a path having a tree-shaped branch structure. For example, the modification path may be a D-disk-first main file-first subfile-a module, or the modification path may also be a D-disk-second main file-third subfile-m module, or the modification path may also be an E-disk-fourth main file-fifth subfile-n module, and so on.
When the target text information corresponding to the modification operation is obtained, it may be first compared step by step whether the modification paths corresponding to the two modification operations are the same.
For example, the modification path 1 corresponding to the two modification operations is a module D disk-first main file-first subfile-a, and the modification path 2 is a module D disk-second main file-third subfile-m. The first-level paths of modification path 1 and modification path 2 may be compared first, that is, the first-level paths of both modification paths are D disks. And comparing the second-level paths of the modification path 1 and the modification path 2, namely, the second-level path of the modification path 1 is a first main file, the second-level path of the modification path 2 is a second main file, and the like. In this way, the step-by-step comparison can determine whether the modification paths corresponding to at least two times of modification operations are the same.
And if the target text information is the same, acquiring the target text information corresponding to at least two times of modification operations under the same modification path.
And if the modification paths are different, respectively acquiring the target text information under all the modification paths for each modification operation.
Specifically, if the modification paths corresponding to the two modification operations are different, for example, the modification path 1 of one modification operation is a module D disk, a first main file, a first subfile, a, and the modification path 2 of another modification operation is a module D disk, a second main file, a third subfile, m, then the target text information of the modification path 1 and the target text information of the modification path 2 may be obtained for each modification operation.
In an embodiment of the application, 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 program difference information;
or
And comparing the target text information respectively corresponding to at least two times of modification operations to obtain the program difference information.
It will be appreciated that a single modification operation on the target program will result in a single version of the program code information; at least two modification operations will produce at least two versions of program code information; program difference information can be obtained by comparing program code information of at least two versions; the program difference information may also be obtained by comparing the program code information of any one modification operation with the program code information of the original version (i.e., the original text information).
In the embodiment of the application, program difference information generated by modification operation of a target program is acquired; generating a program modification file according to the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. According to the embodiment of the application, program difference information generated by modification operation in target program information is automatically counted through the electronic equipment, and the program difference information is generated into a program modification file. Compared with the related art, program difference information is manually recorded and counted, and the manual recording and counting mode is prone to errors and low in efficiency; according to the method and the device, the accuracy and the efficiency of counting the program difference information are improved in an automatic mode, the labor cost is saved, and the operations of saving, reading, transmitting and the like of the program difference information are facilitated based on the finally generated program modification file.
The following describes an application scenario of the embodiment of the present application with reference to fig. 3 and 4:
referring to fig. 3, in the embodiment of the present application, two code information nodes may be obtained through a code node information repository, where each code information node corresponds to one modification operation; then, determining a plurality of code information nodes between the two code information nodes; further, acquiring a code corresponding to the code information node from a background code warehouse, and comparing the code to generate comparison data; and generating a release file (namely the program modification file of the application) from the comparison data through an output format file frame and outputting the release file.
FIG. 4, in conjunction with FIG. 4, illustrates a software delivery scenario flow; in this scenario, the code change auto-generation component performs the methods of the embodiments of the present application. The program code information is transmitted to the code change automatic generation component through the delivery pipeline, and a program modification file is generated through the component; the program modification file is passed to an automatic delivery component through which the program modification file is delivered to the customer.
In the embodiment of the application, program difference information generated by modification operation of a target program is acquired; generating a program modification file according to the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. According to the embodiment of the application, program difference information generated by modification operation in target program information is automatically counted through the electronic equipment, and the program difference information is generated into a program modification file. Compared with the related art, program difference information is manually recorded and counted, and the manual recording and counting mode is prone to errors and low in efficiency; according to the method and the device, the accuracy and the efficiency of counting the program difference information are improved in an automatic mode, the labor cost is saved, and the operations of saving, reading, transmitting and the like of the program difference information are facilitated based on the finally generated program modification file.
An embodiment of the present application provides an information processing apparatus, and as shown in fig. 5, the information processing apparatus 50 may include: an information acquisition module 501, a file generation module 502, wherein,
an information obtaining module 501, configured to obtain program difference information generated by a modification operation of a target program; wherein the program difference information comprises at least one of code difference information and modification operation information;
a file generating module 502, configured to generate a program modification file according to the program difference information.
In an embodiment of the present application, the information obtaining module is specifically configured to:
acquiring target text information corresponding to the modification operation;
and obtaining the program difference information based on the target text information.
In an embodiment of the present application, the information obtaining module is specifically configured to:
acquiring target text information corresponding to the first modification operation and the last modification operation in a target time period;
acquiring target text information respectively corresponding to a first modification operation and a second modification operation which are adjacent to an operation sequence, wherein the operation sequence is determined based on modification time corresponding to the modification operations;
and acquiring target text information corresponding to at least two times of modification operations of the target program module.
In an embodiment of the present application, the file generating module is specifically configured to:
determining whether modification paths corresponding to at least two times of modification operations are the same;
if the target text information is the same as the target text information, acquiring target text information corresponding to at least two times of modification operations under the same modification path;
and if the modification paths are different, respectively acquiring the target text information under all the modification paths for each modification operation.
In an embodiment of the present application, the information obtaining module is specifically configured to:
comparing the original text information of the target program with the target text information to obtain program difference information;
or
And comparing the target text information respectively corresponding to at least two times of modification operations to obtain the program difference information.
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;
the target text information comprises at least one of program code information and modification operation information corresponding to the modification operation.
The apparatus of the embodiment of the present application may execute the method provided by the embodiment of the present application, and the implementation principle is similar, the actions executed by the modules in the apparatus of the embodiments of the present application correspond to the steps in the method of the embodiments of the present application, and for the detailed functional description of the modules of the apparatus, reference may be specifically made to the description in the corresponding method shown in the foregoing, and details are not repeated here.
In the embodiment of the application, program difference information generated by modification operation of a target program is acquired; generating a program modification file according to the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. According to the embodiment of the application, the program difference information generated by the modification operation in the target program information is automatically counted through the electronic equipment, and the program difference information is generated into the program modification file. Compared with the related art, program difference information is manually recorded and counted, and the manual recording and counting mode is prone to errors and low in efficiency; according to the method and the device, the accuracy and the efficiency of counting the program difference information are improved in an automatic mode, the labor cost is saved, and the operations of saving, reading, transmitting and the like of the program difference information are facilitated based on the finally generated program modification file.
An embodiment of the present application provides an electronic device, including: a memory and a processor; at least one program stored in the memory for execution by the processor, which when executed by the processor, implements: in the embodiment of the application, program difference information generated by modification operation of a target program is acquired; generating a program modification file according to the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. According to the embodiment of the application, program difference information generated by modification operation in target program information is automatically counted through the electronic equipment, and the program difference information is generated into a program modification file. Compared with the related art, program difference information is manually recorded and counted, and the manual recording and counting mode is prone to errors and low in efficiency; according to the method and the device, the accuracy and the efficiency of counting the program difference information are improved in an automatic mode, the labor cost is saved, and the operations of saving, reading, transmitting and the like of the program difference information are facilitated based on the finally generated program modification file.
In an alternative embodiment, an electronic device is provided, as shown in fig. 6, the electronic device 4000 shown in fig. 6 comprising: a processor 4001 and a memory 4003. Processor 4001 is coupled to memory 4003, such as via bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, and the transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data. In addition, the transceiver 4004 is not limited to one in practical applications, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The 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 device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 4001 may also be a combination that performs a computational function, including, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 4002 may include a path that carries information between the aforementioned components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 4002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 6, but this is not intended to represent only one bus or type of bus.
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, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 4003 is used for storing application program codes (computer programs) for executing the present scheme, and is controlled by the processor 4001 to execute. Processor 4001 is configured to execute application code stored in memory 4003 to implement what is shown in the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile phones, notebook computers, multimedia players, desktop computers, and the like.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments.
In the embodiment of the application, program difference information generated by modification operation of a target program is acquired; generating a program modification file according to the program difference information; wherein the program difference information includes at least one of code difference information and modification operation information. According to the embodiment of the application, the program difference information generated by the modification operation in the target program information is automatically counted through the electronic equipment, and the program difference information is generated into the program modification file. Compared with the related art, program difference information is manually recorded and counted, and the manual recording and counting mode is prone to errors and low in efficiency; according to the method and the device, the accuracy and the efficiency of counting the program difference information are improved in an automatic mode, the labor cost is saved, and the operations of saving, reading, transmitting and the like on the program difference information are facilitated based on the finally generated program modification file.
The terms "first," "second," "third," "fourth," "1," "2," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein.
It should be understood that, although each operation step is indicated by an arrow in the flowchart of the embodiment of the present application, the implementation order of the steps is not limited to the order indicated by the arrow. In some implementation scenarios of the embodiments of the present application, the implementation steps in the flowcharts may be performed in other sequences as desired, unless explicitly stated otherwise herein. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on an actual implementation scenario. Some or all of these sub-steps or stages may be performed at the same time, or each of these sub-steps or stages may be performed at different times, respectively. In a scenario where execution times are different, an execution sequence of the sub-steps or the phases may be flexibly configured according to requirements, which is not limited in the embodiment of the present application.
The foregoing is only an optional implementation manner of a part of implementation scenarios in this application, and it should be noted that, for those skilled in the art, other similar implementation means based on the technical idea of this application are also within the protection scope of the embodiments of this application without departing from the technical idea of this application.

Claims (10)

1. An information processing method characterized by comprising:
acquiring program difference information generated by modification operation of a target program; wherein the program difference information comprises at least one of code difference information and modification operation information;
and generating a program modification file according to the program difference information.
2. The information processing method according to claim 1, wherein said acquiring program difference information generated by a modification operation of the target program includes:
acquiring target text information corresponding to the modification operation;
and obtaining the program difference information based on the target text information.
3. The information processing method according to claim 2, wherein the obtaining of the target text information corresponding to the modification operation includes at least one of:
acquiring target text information corresponding to first modification operation and last modification operation in a target time period;
acquiring target text information respectively corresponding to a first modification operation and a second modification operation which are adjacent to an operation sequence, wherein the operation sequence is determined based on modification time corresponding to the modification operations;
and acquiring target text information corresponding to at least two times of modification operations of the target program module.
4. The information processing method according to claim 2, wherein the modification operation includes at least two times,
the acquiring of the target text information corresponding to the modification operation includes:
determining whether modification paths respectively corresponding to at least two times of modification operations are the same;
if the target text information is the same as the target text information, acquiring target text information corresponding to at least two times of modification operations under the same modification path;
and if the modification paths are different, respectively acquiring the target text information under all the modification paths for each modification operation.
5. The information processing method according to claim 2, 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 program difference information;
or
And comparing the target text information respectively corresponding to at least two times of modification operations to obtain the program difference information.
6. The information processing method according to any one of claims 1 to 5,
the program modification file comprises at least one of a hypertext markup language file and a table file;
the target text information comprises at least one of program code information and modification operation information corresponding to the modification operation.
7. An information processing apparatus characterized by comprising:
the information acquisition module is used for acquiring program difference information generated by modification operation of a target program; wherein the program difference information comprises at least one of code difference information and modification operation information;
and the file generation module is used for generating a program modification file according to the program difference information.
8. The information processing apparatus according to claim 7, wherein the information acquisition module is specifically configured to:
acquiring target text information corresponding to the modification operation;
and obtaining the program difference information based on the target text information.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory;
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, the one or more programs configured to: the information processing method according to any one of claims 1 to 6 is executed.
10. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing the information processing method according to any one of claims 1 to 6.
CN202210771586.6A 2022-06-30 2022-06-30 Information processing method, information processing device, electronic equipment and computer readable storage medium Pending CN115061723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210771586.6A CN115061723A (en) 2022-06-30 2022-06-30 Information processing method, information processing device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210771586.6A CN115061723A (en) 2022-06-30 2022-06-30 Information processing method, information processing device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115061723A true CN115061723A (en) 2022-09-16

Family

ID=83203815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210771586.6A Pending CN115061723A (en) 2022-06-30 2022-06-30 Information processing method, information processing device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115061723A (en)

Similar Documents

Publication Publication Date Title
CN111428462B (en) Communication protocol template construction method and terminal equipment
CN108959279B (en) Data processing method, data processing device, readable medium and electronic equipment
CN109815119B (en) APP link channel testing method and device
CN112463991B (en) Historical behavior data processing method and device, computer equipment and storage medium
EP3362900B1 (en) Telemetry system extension
CN110908967B (en) Method, device, equipment and computer readable medium for storing log
CN111756779B (en) Data serialization processing method, device and computer system
CN109672608B (en) Method for transmitting messages according to time
CN111400170A (en) Data permission testing method and device
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN112181430A (en) Code change statistical method and device, electronic equipment and storage medium
CN115599359A (en) Code generation method, device, equipment and medium
CN111159040A (en) Test data generation method, device, equipment and storage medium
CN110888972A (en) Sensitive content identification method and device based on Spark Streaming
CN111124883B (en) Test case library introduction method, system and equipment based on tree form
CN109542743B (en) Log checking method and device, electronic equipment and computer readable storage medium
CN109582347B (en) Method and device for acquiring front-end codes
CN111124541A (en) Configuration file generation method, device, equipment and medium
CN110020166B (en) Data analysis method and related equipment
CN113377648B (en) Software system diagnosis method, device, electronic equipment and computer readable medium
CN113688133B (en) Data processing method, system, device, medium and equipment based on compliance calculation
US10509659B1 (en) Input processing logic to produce outputs for downstream systems using configurations
CN115061723A (en) Information processing method, information processing device, electronic equipment and computer readable storage medium
CN113781275A (en) Education resource management method and server
CN116185806A (en) Digital currency system testing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination