- 授权协议: 未知
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://fedorahosted.org/director/
- 软件文档: http://packages.python.org/director/index.html
软件介绍
Director 是一个Python的类库用来开发命令行工具的插件,利用它可以很方便的添加新的功能。
下面是一个简单的例子:
#!/usr/bin/env python
import exceptions
import sys
from director import ActionRunner
from director.filter import ExceptionFilter
from director.filter import Filter
if __name__ == '__main__':
# Create and use exception filters
# Note you don't have to use filters. If you don't pass filter in
# to ActionRunner.run filters won't be used.
filter = Filter()
filter.register_filter(ExceptionFilter(exceptions.IOError, "TEST %s"))
filter.register_filter(ExceptionFilter(exceptions.TypeError, "NO! %s"))
# 'actions.package' is the package that holds the allowed plugin actions
ar = ActionRunner(sys.argv, 'actions.package')
ar.run(filter)
与机器赛跑
[美]埃里克·布林约尔松(Erik Brynjolfsson)、[美]安德鲁·麦卡菲(Andrew McAfee) / 闾佳 / 2013-1-20 / 6.00
一场数字革命正在加速进行。 一些科幻小说里的场景已经在现实中发生:无人驾驶汽车开上了公路;智能设备能高效地翻译人类语言;人工智能系统在智力竞赛里击败了所有人类选手;工厂雇主开始购买更多的新机器,却不招新工人…… 这些例子都证明,数字技术正在快速地掌握原本只属于人类的技能,并深刻地影响了经济。虽然大多数影响是积极的:数字革新将提高效率、降低商品价格(甚至到免费),以及增加经济总量。 ......一起来看看 《与机器赛跑》 这本书的介绍吧!
