- 授权协议: Apache
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://code.google.com/p/pyv8/
- 软件文档: https://code.google.com/p/pyv8/w/list
软件介绍
PyV8 是 V8 引擎的 Python 语言封装,这是 Python 和 JavaScript 对象之间的桥,支持在 Python 脚本中调用 V8 引擎。
>>> import PyV8
>>> ctxt = PyV8.JSContext() # create a context with an implicit global object
>>> ctxt.enter() # enter the context (also support with statement)
>>> ctxt.eval("1+2") # evalute the javascript expression
3 # return a native python int
>>> class Global(PyV8.JSClass): # define a compatible javascript class
... def hello(self): # define a method
... print "Hello World"
...
>>> ctxt2 = PyV8.JSContext(Global()) # create another context with the global object
>>> ctxt2.enter()
>>> ctxt2.eval("hello()") # call the global object from javascript
Hello World # the output from python script
Docker开发指南
[英] Adrian Mouat / 黄彦邦 / 人民邮电出版社 / 2017-4 / 79.00元
Docker容器轻量和可移植的特性尤其适用于动态和分布式的环境,它的兴起给软件开发流程带来了一场革命。本书对Docker进行了全面讲解,包括开发、生产以至维护的整个软件生命周期,并对其中可能出现的一些问题进行了探讨,如软件版本差异、开发环境与生产环境的差异、系统安全问题,等等。一起来看看 《Docker开发指南》 这本书的介绍吧!
