安装:

pip install js2py

使用:

执行js函数:

  python3使用js2py

执行js函数:

import js2py
js = js2py.EvalJs({})
js.execute("""
var i = 0;
for(;;i++) {
    break;
    }
    // i must be 0.
    console.log("i should be 0. i=" + i);
     """)

python3使用js2py

 

相关文章:

  • 2022-12-23
  • 2021-09-15
  • 2021-09-29
  • 2021-10-11
  • 2021-09-26
  • 2021-12-14
  • 2022-12-23
猜你喜欢
  • 2021-08-30
  • 2022-12-23
  • 2021-05-24
  • 2021-12-16
  • 2022-01-08
  • 2021-06-26
  • 2022-12-23
相关资源
相似解决方案