摘要: import js2py # 实例化一个执行js的环境对象 context_js_obj = js2py.EvalJs() js_str = """ function A(a,b){ return a+b } """ # 传递js_str,执行js context_js_obj.execute(js_str) result = context_js_obj.A... 阅读全文
posted @ 2019-08-03 00:12 Mr_Smith 阅读(1303) 评论(0) 推荐(0)