count-dict-1.1.1
توضیحات
Count dictionary package in python.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | count-dict-1.1.1 |
| نام | count-dict |
| نسخه کتابخانه | 1.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | sosei |
| ایمیل نویسنده | fss.sosei@gmail.com |
| آدرس صفحه اصلی | https://github.com/fsssosei/count_dict |
| آدرس اینترنتی | https://pypi.org/project/count-dict/ |
| مجوز | GNU Affero General Public License v3 |
# count_dict



[](https://scrutinizer-ci.com/g/fsssosei/count_dict/build-status/master)
[](https://scrutinizer-ci.com/code-intelligence)
[](https://lgtm.com/projects/g/fsssosei/count_dict/context:python)
[](https://www.codacy.com/manual/fsssosei/count_dict?utm_source=github.com&utm_medium=referral&utm_content=fsssosei/count_dict&utm_campaign=Badge_Grade)
[](https://scrutinizer-ci.com/g/fsssosei/count_dict/?branch=master)



*This is a Python package for count dictionaries.*
## Installation
Installation can be done through pip. You must have python version >= 3.7
pip install count-dict
## Usage
The statement to import the package:
from count_dict_package import count_dict
Example:
>>> accumulated = count_dict()
>>> accumulated['x'] += 9
>>> accumulated.items()
dict_items([('x', 9)])
>>> accumulated = count_dict(10)
>>> accumulated['x'] += 9
>>> accumulated.items()
dict_items([('x', 19)])
>>> accumulated = defaultdict(count_dict)
>>> accumulated['x']['y'] += 9
>>> {'x': dict(accumulated['x'])}
{'x': {'y': 9}}
>>> accumulated = defaultdict(count_dict(10))
>>> accumulated['x']['y'] += 9
>>> {'x': dict(accumulated['x'])}
{'x': {'y': 19}}
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl count-dict-1.1.1:
pip install count-dict-1.1.1.whl
نصب پکیج tar.gz count-dict-1.1.1:
pip install count-dict-1.1.1.tar.gz