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

类似这种叫什么模式?

  •  
  •   julyclyde ·
    julyclyde · Aug 24, 2024 · 12686 views
    This topic created in 768 days ago, the information mentioned may be changed or developed.

    类似 socketserver 和 handler asynchat 这类,把通信和应答功能分离的 叫什么模式?

    6 replies  •  2024-09-10 10:40:46 +08:00
    R4rvZ6agNVWr56V0
        1
    R4rvZ6agNVWr56V0  
       Aug 24, 2024   ❤️ 1
    处理器模式( Handler Pattern )或回调模式( Callback Pattern )
    SuperDaFu
        2
    SuperDaFu  
       Aug 25, 2024
    我理解,设计模式的基础是做好 职责分离,只做自己分内的事情。
    julyclyde
        3
    julyclyde  
    OP
       Aug 26, 2024
    @SuperDaFu 虽然你说的对,但你这句话和我的提问有什么关系呢?
    SuperDaFu
        4
    SuperDaFu  
       Sep 1, 2024
    @julyclyde 关系就是设计模式往往解决的是小职责的问题,你的问题应该落到设计原则,而不是简单的设计模式上。
    julyclyde
        5
    julyclyde  
    OP
       Sep 2, 2024
    @SuperDaFu 你想多了
    dode
        6
    dode  
       Sep 10, 2024
    适配器模式,责任链模式,代理模式
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   779 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 20:35 · PVG 04:35 · LAX 13:35 · JFK 16:35
    ♥ Do have faith in what you're doing.