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

寻将 Python 方法作为一个个积木块式的编程思路

  •  
  •   Carry0317 · Oct 9, 2020 · 3209 views
    This topic created in 2063 days ago, the information mentioned may be changed or developed.

    将 python 方法作为一个个积木块,像流程图那样的可视化运行。 有相关的资料参考一下么

    Supplement 1  ·  Oct 9, 2020
    像这种的 https://developers.google.com/blockly/
    scratch 之类的都比较类似。 不知道还有没有其他的实现,能自定义 python 方法调用的
    17 replies    2020-10-10 08:31:01 +08:00
    janxin
        1
    janxin  
       Oct 9, 2020
    workflow engine?
    krixaar
        2
    krixaar  
       Oct 9, 2020
    从上到下顺序写然后第一行打个断点跑个调试?
    676529483
        3
    676529483  
       Oct 9, 2020
    可以参考下各种云的函数式
    Carry0317
        4
    Carry0317  
    OP
       Oct 9, 2020
    要有个 GUI 操作界面
    1.已经写好了许多方法:动作 1 (吃饭)动作 2 (睡觉)等。
    2.然后制作流程图:吃饭 --> 睡觉 --> 睡觉--> 吃饭
    3.点击运行按钮,按照流程图顺序执行
    想达到这样的效果
    shoaly
        5
    shoaly  
       Oct 9, 2020
    看电影.. 电影里面全都是
    imn1
        6
    imn1  
       Oct 9, 2020
    UML 自动生成代码?

    按#4 所说确实很简单可以实现
    GUI 复杂的地方在于两点,操作顺序不定、参数不定,如果象#4 那样,操作顺序和参数都固定了,就没什么难的了
    DoctorCat
        7
    DoctorCat  
       Oct 9, 2020
    BPMN ?
    clf
        8
    clf  
       Oct 9, 2020
    这类应用好多……尤其是那些打着“趣味编程”的编程课程,基本都是你所描述的样子。

    你想做的话可以参考 Google 的 web 可视化编程:blockly,很多都是基于这个做的。
    clf
        9
    clf  
       Oct 9, 2020
    附上 blockly 演示链接: https://developers.google.com/blockly/

    Google 还基于这个做了一个 Android 开发工具:App Inventor https://appinventor.mit.edu/
    CallMeReznov
        10
    CallMeReznov  
       Oct 9, 2020
    lz 说的这个?

    http://www.tpyboard.com/pythoneditor/


    不过这个是 micropython 的。
    ZavierXu
        11
    ZavierXu  
       Oct 9, 2020
    建议参考本站 /t/705780
    /滑稽
    Carry0317
        12
    Carry0317  
    OP
       Oct 9, 2020
    @DoctorCat 这个能用 python 代码?
    Carry0317
        13
    Carry0317  
    OP
       Oct 9, 2020
    @lychs1998 是的。。。什么少儿编程啥的 scratch 、编程猫之类的。想实现个类似的吧 ,能自定义 python 方法,然后调用的。不知道你说的这个 blockly 能不能实现
    chihiro2014
        14
    chihiro2014  
       Oct 9, 2020
    函数式编程
    mepwang
        16
    mepwang  
       Oct 10, 2020 via iPhone
    微软 PXT,makecode.com ,也是开源的
    clf
        17
    clf  
       Oct 10, 2020
    @Carry0317 可以的,某开发板上 python 的编程就是用的这个为基础做的,很多少儿编程的 web 端都是用这玩意做的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4205 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 68ms · UTC 00:05 · PVG 08:05 · LAX 17:05 · JFK 20:05
    ♥ Do have faith in what you're doing.