安装相应的库,我使用的是PyV8. 需要注意的是里面写的function函数需要用()括起来. import PyV8. class Test(): def js(self): ctxt = PyV8.JSContext().
確定! 回上一頁