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

用 Python 写 Web 应用怎么让业务不依赖于数据模型?

  •  
  •   midknight · Mar 12, 2021 · 2686 views
    This topic created in 2026 days ago, the information mentioned may be changed or developed.
    是否要像 java 那样根据 MVC 模式写 DAO 层,然后在输出到业务层时做对象字段的映射?还是说数据模型定好了,本来就应该像开闭原则那样只允许添加不允许修改?
    2 replies  •  2021-03-12 15:46:38 +08:00
    TomatoCLI
        1
    TomatoCLI  
       Mar 12, 2021
    DDD
    joApioVVx4M4X6Rf
        2
    joApioVVx4M4X6Rf  
       Mar 12, 2021
    同问
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5321 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 03:33 · PVG 11:33 · LAX 20:33 · JFK 23:33
    ♥ Do have faith in what you're doing.