Unlock instant, AI-driven research and patent intelligence for your innovation.

Data processing method and device, equipment and storage medium

A technology of data processing and data items, applied in the computer field, can solve problems such as inability to obtain correct data, unreliable user input, etc.

Pending Publication Date: 2022-05-10
北京高途云集教育科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, there are many risks in using eval. For the front end, all user input is unreliable. If the eval function is executed on user input, it may cause unpredictable errors. Moreover, this method is suitable for strings with quotation marks, single Quotation marks, backtick literals, and variables of object type cannot get correct calculation results

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method and device, equipment and storage medium
  • Data processing method and device, equipment and storage medium
  • Data processing method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

[0034] Like numbers and letters denote similar items in the following figures, so that once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

[0035] see figure 1 , which is an electronic device 1 shown in an embodiment of the present application, and the electronic device 1 includes: at least one processor 11 and a memory 12, figure 1Take a processor as an example. The processor 11 and the memory 12 are connected through the bus 10 , the memory 12 stores instructions executable by the processor 11 , and the instructions are ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data processing method and device, equipment and a storage medium, and relates to the technical field of computers, in particular to the data processing method comprising the steps that a character string input by a user is acquired; the character string is analyzed, data items and operators in the character string are obtained, and the data items comprise at least one of literal quantities and variables; according to the data item and the operator, generating an operation expression according to a preset format; when the operation expression contains the variable, obtaining the value of the variable; and calculating according to the value of the variable and the operation expression to obtain a data processing result of the character string. Therefore, the character string input by the user is analyzed to obtain the corresponding data item and the operator, the operation expression and the value of the variable are obtained according to the preset format and the data item and the operator, and the data processing result is obtained according to the value of the variable and the operation expression. Therefore, calculation of literal quantities with quotation marks, single quotation marks and reverse quotation marks in character strings can be carried out.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular, to a data processing method, device, device, and storage medium. Background technique [0002] In business systems, formulas containing variables are generally calculated using the eval function. The eval function can convert a string into code for execution and return one or more values. [0003] However, there are many risks in using eval. For the front end, all user input is unreliable. If the eval function is executed on user input, it may cause unpredictable errors. Moreover, this method is suitable for strings with quotation marks, single Literal values ​​in quotes and backticks, and variables of object type cannot get correct calculation results. Contents of the invention [0004] The present application provides a data processing method, device, device, and storage medium, which can correctly perform operations on literals with quotation marks, single quo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F40/205G06F40/111
CPCG06F40/205G06F40/111
Inventor 吴洋
Owner 北京高途云集教育科技有限公司