awang1697 / gqylpy-dict

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

Home Page:http://gqylpy.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 不能做的它更能做。

http://gqylpy.com

License:Other


Languages

Language:Python 100.0%