Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data processing method and device and electronic equipment

A data processing and data technology, applied in the computer field, can solve the problem that nested data cannot be read-only, and achieve the effect of ensuring read-only

Active Publication Date: 2020-11-17
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF13 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Based on the problem in the prior art that each data structure needs to be individually inherited to implement a new data structure and the problem that nested data cannot be read-only, the present invention proposes a data processing method, device and electronic equipment, and provides a The common data structure supports the read-only function of all configuration data, and also supports the read-only function of nested data

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 and electronic equipment
  • Data processing method and device and electronic equipment
  • Data processing method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The present invention will be further described below with reference to the accompanying drawings and in combination with preferred embodiments.

[0034] The inventors found that, after implementing a new data structure by inheriting python's dict, list, set, etc. in the prior art and then disabling the method that can modify each data structure, although the read-only data can be realized to a certain extent, but There is a problem that it can only implement shallow read-only, and cannot support read-only nested data; for nested data, the nested data can also be modified and the data will eventually be modified. For example, data={"k1":{}}, although data cannot be modified directly, but if temp=data["k1"], temp can be modified directly, such as after temp["k2"]=1 , the data content becomes data={'k1':{'k2':1}}. This modification will also cause program exceptions.

[0035] According to one embodiment of the present disclosure, a data processing method is provided. It...

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 which comprises the following steps: defining an attribute monitoring class for configuration data, with the attribute monitoring class being used formonitoring whether the configuration data is modified or deleted; in response to an acquisition request for configuration data, determining whether the configuration data is variable type data or not;if the configuration data is variable type data, packaging the configuration data into monitoring object data according to the attribute monitoring class; and returning the monitoring object data. The invention further discloses electronic equipment which comprises a processor and a memory, computer executable instructions capable of being executed by the processor are stored in the memory, and the processor executes the computer executable instructions to achieve the steps of the data processing method. The invention provides a universal data structure which supports the read-only function of all configuration data and also supports the read-only function of nested data.

Description

technical field [0001] The invention relates to the field of computers, in particular to a data processing method, device and electronic equipment. Background technique [0002] A large amount of configuration data will be used in game development. These data are usually converted into codes after planning and filling in forms for use in programs. In games developed by python, these configuration data are generally stored in python’s dict (dictionary), In data structures such as list (list) and set (collection), for example, the item configuration information is as follows: [0003] [0004] These configuration data will be used in many places (for example, item configuration information may be used in the package system, reward system, mail system, etc.), and usually cannot be modified. Once a certain place is accidentally modified, it will cause all other places where it is used This potential risk cannot be detected at the grammatical and semantic levels, but at the l...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06F8/71A63F13/77
CPCG06F8/315G06F8/71A63F13/77
Inventor 尚乐
Owner NETEASE (HANGZHOU) NETWORK CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products