推荐学习书目
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
ChrisFreeMan
V2EX  ›  Python

该来的还是来了, Python 版 react

  •  
  •   ChrisFreeMan · Aug 11, 2023 · 3501 views
    This topic created in 1027 days ago, the information mentioned may be changed or developed.

    reactpy.dev

    from reactpy import component, html, run
    
    
    @component
    def App():
        return html.h1("Hello, world!")
    
    
    run(App)
    
    12 replies    2023-08-12 16:28:39 +08:00
    naminokoe
        1
    naminokoe  
       Aug 11, 2023 via iPhone   ❤️ 1
    有没有 python 版的 vue
    NessajCN
        2
    NessajCN  
       Aug 11, 2023
    支持 jsx 吗.....
    fgwmlhdkkkw
        3
    fgwmlhdkkkw  
       Aug 11, 2023   ❤️ 2
    这下是真的需要游标卡尺了!🥰
    cherbim
        4
    cherbim  
       Aug 11, 2023
    名字味不对,不应该叫 pyreact 么?
    ChrisFreeMan
        5
    ChrisFreeMan  
    OP
       Aug 11, 2023
    @NessajCN 真要支持也应该叫 pyx ( PythonXML )吧, 实际上 jsx 也是最终翻译成 js 来执行的,只有有人愿意去开发这个编译工具当然也可以支持。
    ChrisFreeMan
        6
    ChrisFreeMan  
    OP
       Aug 11, 2023
    @naminokoe 可能 react 的理念更合适一些吧。。。
    NessajCN
        7
    NessajCN  
       Aug 11, 2023 via Android
    @ChrisFreeMan 你在 python 里也得翻译成 js 啊…浏览器又不认识 python 脚本
    ChrisFreeMan
        8
    ChrisFreeMan  
    OP
       Aug 11, 2023
    ChrisFreeMan
        9
    ChrisFreeMan  
    OP
       Aug 11, 2023
    @NessajCN 好了好了,我知道了它也是 js 写的,不要较真
    MrHyde
        10
    MrHyde  
       Aug 12, 2023 via iPhone
    @cherbim reactjs vs reactpy
    zcf0508
        11
    zcf0508  
       Aug 12, 2023   ❤️ 1
    RuiCBai
        12
    RuiCBai  
       Aug 12, 2023 via Android
    https://github.com/reactive-python/reactpy/discussions/996

    还想试试的,发现没法在 vercel 上 deploy
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1018 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 22:11 · PVG 06:11 · LAX 15:11 · JFK 18:11
    ♥ Do have faith in what you're doing.