V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
617450941
V2EX  ›  Python

python 报错

  •  
  •   617450941 · 2015-11-28 10:49:41 +08:00 · 2536 次点击
    这是一个创建于 3077 天前的主题,其中的信息可能已经有所发展或是发生改变。
    db thread except:unbound method zx() must be called with Connect instance as first argument (got str instance instead)
    这个报错是什么问题?
    6 条回复    2015-11-29 16:20:57 +08:00
    Delbert
        1
    Delbert  
       2015-11-28 10:58:49 +08:00 via Android
    看了楼主之前的提问,私以为楼主应该到《提问的智慧》里面找答案。
    还有,楼主是看不懂英文吗?我来翻译一下:
    zx 方法需要调用 Connect 实例作为第一个参数,楼主传递了字符串。
    不要回复我了, block 不谢。
    windfarer
        2
    windfarer  
       2015-11-28 11:02:04 +08:00 via Android
    先学英语?
    limbo0
        3
    limbo0  
       2015-11-28 16:54:20 +08:00
    默默点进去看了眼 -> block
    tjxiter
        4
    tjxiter  
       2015-11-28 22:08:34 +08:00
    调用 zx 的那个实例应该是 Connect instance ,而你用的是 str instance 。

    报错信息都说了。多学学英语,推荐《新概念英语》。我同事有时候看不懂的英文叫我翻译。。。
    aprikyblue
        5
    aprikyblue  
       2015-11-29 14:20:46 +08:00
    RTFM
    AndyCarry
        6
    AndyCarry  
       2015-11-29 16:20:57 +08:00
    一些英语术语还是要掌握的
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1967 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 01:19 · PVG 09:19 · LAX 18:19 · JFK 21:19
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.