Skip to content

基于内置 dict,它是对内置 dict 的增强。内置 dict 能做的它都能做,内置 dict 不能做的它更能做。

License

Notifications You must be signed in to change notification settings

HsuanwuDev/gqylpy-dict

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LOGO Release Python Versions License Downloads

gqylpy-dict

gqylpy-dict 基于内置 dict,它是对内置 dict 的增强。内置 dict 能做的它都能做,内置 dict 不能做的它更能做。

pip3 install gqylpy_dict

>>> from gqylpy_dict import gdict

>>> gdict == dict
True

>>> gdict is dict
False

>>> x = {'a': [{'b': 'B'}]}
>>> x = gdict(x)
>>> x.a[0].b
'B'

>>> x.deepget('a[0].b')
'B'

About

基于内置 dict,它是对内置 dict 的增强。内置 dict 能做的它都能做,内置 dict 不能做的它更能做。

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%