python中的数据结构
dast的Python项目详细描述
欢迎来到DAST
dast在众所周知的内置组件上提供可链接的增强数据结构。
- list是一个增强的列表,具有
list
内置类型已经扩展了很多有用的函数。 - set是一个超集,作为一般的
set
类型工作,但是它做的更多 这是最基本的。 - dictionary是一个键值对容器,类似于
dict
,它由大量功能构建。 - tuple是内置
tuple
上的finate顺序列表。
安装
pip install dast
用法
fromdastimportLista=List([1,2,3,4,5]) \ .delete_if(lambdax:x%2==0) \ .map(lambdax:x*2) \ .chain(['a','b']) \ .each_with_index() \ .to_list()# => [[0, 2], [1, 6], [2, 10], [3, 'a'], [4, 'b]]
文档
有关详细信息,请阅读可以找到的文档:https://dast.readthedocs.io/
贡献
- 叉开!
- 做你的改变!
- 发送公关!