Best way to integrate Python and JavaScript?

后端 未结 12 2466
礼貌的吻别
礼貌的吻别 2020-11-28 02:39

Is it possible to integrate Python and JavaScript? For example, imagine you wanted to be able to define classes in JavaScript and use them from Python (or vice versa). If

12条回答
  •  青春惊慌失措
    2020-11-28 02:57

    This question is not exactly young, but there have come up some alternatives:

    • "Skulpt is an entirely in-browser implementation of Python."
    • Brython - "A Python 3 implementation for client-side web programming"
    • RapydScript - "Python-like JavaScript without the extra overhead or quirks"
    • Transcrypt - "Lean and mean Python 3.6 to JavaScript compiler with multiple inheritance, sourcemaps, static type checking and selective operator overloading." (also on Github)

提交回复
热议问题