Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Convert Javascript to Python

>>> import js2py
>>> f = js2py.eval_js( "function $(a) {return a + arguments[1]}" )
>>> f
function $(a) { [python code] }
>>> f(1, 2, 3)
3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Convert #Javascript #Python
ADD COMMENT
Topic
Name
7+7 =