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

Python dictionary data processing method, device and equipment

A data processing device and data processing technology, applied in the direction of programming language/paradigm, creating/generating source code, etc., can solve problems such as difficult to understand, complicate, and reduce the usefulness of Python dictionaries, so as to reduce cumbersomeness and improve usefulness Effect

Active Publication Date: 2020-01-17
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Since [] and '' need to be input when processing a dictionary, the amount of user input will increase, especially when the value of a dictionary is used as the key of another dictionary, the input and processing methods will be more cumbersome and complicated. and difficult to read
In addition, this processing form is quite different from the processing form of mainstream programming languages ​​such as C and Java, so it will reduce the usefulness of Python dictionaries

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
  • Python dictionary data processing method, device and equipment
  • Python dictionary data processing method, device and equipment
  • Python dictionary data processing method, device and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0043] see figure 1 , which shows a flow chart of a data processing method for a Python dictionary provided in an embodiment of the present application, which may include:

[0044] S11: Copy the original dictionary in Python to obtain a copied dictionary.

[0045] Inherit and extend the original dictionary type in Python to form a new dictionary, that is, copy the original dictionary in Python to obtain a duplicate dictionary, so as to ensure that the duplicate dictionary has the s...

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 Python dictionary data processing method, apparatus and device, and a computer readable storage medium. The method comprises the steps of copying an original dictionary in Python to obtain a copied dictionary; setting an attribute function in the replication dictionary, and enabling a user to process the replication dictionary in an attribute form through the attribute function; wherein the attribute functions comprise a gettr function, a settr function and a delta tr function; and performing serialization processing and visualization processing on the copy dictionary. The invention discloses the technical scheme. A user can process the copy dictionary in an attribute form through an attribute function; [] and ''do not need to be input again during assignment andaccess, so that the complexity of Python dictionary processing is reduced, the processing mode of the Python dictionary processing is kept consistent with the processing mode of mainstream programminglanguages such as C and Java, and the use degree of the Python dictionary is improved.

Description

technical field [0001] The present application relates to the technical field of computer programming languages, and more specifically, relates to a data processing method, device, equipment and computer-readable storage medium of a Python dictionary. Background technique [0002] As a simple and easy-to-use dynamic programming oracle, Python is widely used in machine learning, big data analysis, scientific computing and other fields. Commonly used data structures in Python include dictionaries, lists, tuples, etc. Among them, dictionaries are widely used as a powerful data tool. [0003] At present, when using a dictionary dict, it is necessary to access and assign values ​​​​(that is, process) in the form of key-value pairs, and it needs to input [] and '' during processing, for example: in the key-value pair {'key': value} When accessing and assigning values, its specific form is as follows: [0004] foo=dict['key']#access [0005] dict['key']=new_value#assignment [...

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): G06F8/30
CPCG06F8/31
Inventor 马旭
Owner SUZHOU LANGCHAO INTELLIGENT TECH 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