- 授权协议: 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
Python神经网络编程
[英]塔里克·拉希德(Tariq Rashid) / 林赐 / 人民邮电出版社 / 2018-4 / 69.00元
神经网络是一种模拟人脑的神经网络,以期能够实现类人工智能的机器学习 技术。 本书揭示神经网络背后的概念,并介绍如何通过Python实现神经网络。全书 分为3章和两个附录。第1章介绍了神经网络中所用到的数学思想。第2章介绍使 用Python实现神经网络,识别手写数字,并测试神经网络的性能。第3章带领读 者进一步了解简单的神经网络,观察已受训练的神经网络内部,尝试进一步改......一起来看看 《Python神经网络编程》 这本书的介绍吧!
