V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 10676 views
    This topic created in 620 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   ·   Solana   ·   3832 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 05:06 · PVG 13:06 · LAX 22:06 · JFK 01:06
    ♥ Do have faith in what you're doing.