- 授权协议: MIT
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://gitee.com/kinegratii/borax
- 软件文档: https://kinegratii.github.io/borax
- 官方下载: https://github.com/kinegratii/borax
软件介绍
____ | __ ) ___ _ __ __ ___ __ | _ \ / _ \| '__/ _` \ \/ / | |_) | (_) | | | (_| |> < |____/ \___/|_| \__,_/_/\_\
Borax 是一个Python3开发工具集合,包含了常用的数据结构和设计模式。
模块
包括了以下模块:
中国农历日期 borax.calendars.lunardate
国际/国内节日 borax.calendars.festivals
树形数据结构 borax.structures.tree
单例模式 borax.patterns.singleton
代理模式 borax.patterns.lazy
json序列化 borax.serialize.bjson / borax.serialize.cjson
财务金额格式化 borax.finance
别名字典、属性字典 borax.dictionary
列表常用函数 borax.utils
使用示例
农历日期
>>>from borax.calendars.lunardate import LunarDate, LCalendars >>>LunarDate(2018, 7, 1) LunarDate(2018, 7, 1, 0) >>>ld = LunarDate.from_solar_date(2018, 8, 11) >>>ld LunarDate(2018, 7, 1, 0) >>>LCalendars.ndays(2018) 354 >>>LCalendars.ndays(2018, 12) 30 >>>LCalendars.ndays(2017, 6, 1) 30
金额大写
>>> from borax.finance import financial_amount_capital >>> financial_amount_capital(100000000) '壹亿元整' >>>financial_amount_capital(4578442.23) '肆佰伍拾柒万捌仟肆佰肆拾贰元贰角叁分' >>>financial_amount_capital(107000.53) 壹拾万柒仟元伍角叁分
字段选取
from borax.fetch import fetch
objects = [
{'id': 282, 'name': 'Alice', 'age': 30},
{'id': 217, 'name': 'Bob', 'age': 56},
{'id': 328, 'name': 'Charlie', 'age': 56},
]
names = fetch(objects, 'name')
print(names)更多示例查看 https://kinegratii.github.io/borax
CLR via C#
(美)Jeffrey Richter / 周靖 / 清华大学出版社 / 2010-9 / 99.00元
本书针对CLR和.NET Framework 4.0进行深入、全面的探讨,并结合实例介绍了如何利用它们进行设计、开发和调试。全书5部分29章。第Ⅰ部分介绍CLR基础,第Ⅱ部分解释如何设计类型,第Ⅲ部分介绍基本类型,第Ⅳ部分以实用特性为主题,第Ⅴ部分花大量篇幅重点介绍线程处理。 通过本书的阅读,读者可以掌握CLR和.NET Framework的精髓,轻松、高效地创建高性能应用程序。一起来看看 《CLR via C#》 这本书的介绍吧!
