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

sqlalchemy 请教

  •  
  •   bianz103 · Dec 14, 2019 · 3887 views
    This topic created in 2476 days ago, the information mentioned may be changed or developed.

    python 函数参数可以为普通参数,列表,字典,看到 sqlalchemy 里面参数为 user_table.c.id == 5 这种检索方式,请问这是什么形式的语法?

    1 replies  •  2019-12-14 21:53:03 +08:00
    n121
        1
    n121  
       Dec 14, 2019   ❤️ 2
    Python 可以重载操作符,user_table.c.id == 5 等于 user_table.c.id.__eq__(5)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   956 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 22:45 · PVG 06:45 · LAX 15:45 · JFK 18:45
    ♥ Do have faith in what you're doing.