V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Cbdy
V2EX  ›  Python

有没有让 Python 写起来像 JavaScript 一样的库?

  •  
  •   Cbdy · 2019-09-26 13:18:01 +08:00 · 2955 次点击
    这是一个创建于 1667 天前的主题,其中的信息可能已经有所发展或是发生改变。

    问一个镜像问题,我不是很喜欢 Python 游标卡尺风的代码,但是有的时候还是必须要去写一些 python 脚本:很多时候有的设备上往往有 python2 环境但是没有 node

    所以有没有比较好用、流行的编译器,可以把 js 代码转成 python 代码?最好能转成 python2

    P.S. 看到隔壁帖子的Rusthon,有用过的大佬说说效果嘛?或者有其他类似的 alternative ?😳

    3 条回复    2019-09-26 20:45:32 +08:00
    shintendo
        1
    shintendo  
       2019-09-26 13:21:11 +08:00
    换个思路,找个 python 写的 js 运行时?
    molika
        2
    molika  
       2019-09-26 14:32:06 +08:00
    hy-lang 试一试.
    BlueMeow
        3
    BlueMeow  
       2019-09-26 20:45:32 +08:00
    GraalVM 试试? JS Python Java 统一了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2969 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:13 · PVG 19:13 · LAX 04:13 · JFK 07:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.