617450941
V2EX  ›  Python

python 报错

By 617450941 at 2015 年 11 月 28 日 · 3790 次点击
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 日 via Android
看了楼主之前的提问,私以为楼主应该到《提问的智慧》里面找答案。
还有,楼主是看不懂英文吗?我来翻译一下:
zx 方法需要调用 Connect 实例作为第一个参数,楼主传递了字符串。
不要回复我了, block 不谢。
windfarer
   2
windfarer  
   2015 年 11 月 28 日 via Android
先学英语?
limbo0
   3
limbo0  
   2015 年 11 月 28 日
默默点进去看了眼 -> block
tjxiter
   4
tjxiter  
   2015 年 11 月 28 日
调用 zx 的那个实例应该是 Connect instance ,而你用的是 str instance 。

报错信息都说了。多学学英语,推荐《新概念英语》。我同事有时候看不懂的英文叫我翻译。。。
aprikyblue
   5
aprikyblue  
   2015 年 11 月 29 日
RTFM
AndyCarry
   6
AndyCarry  
   2015 年 11 月 29 日
一些英语术语还是要掌握的
推荐学习书目
› 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
© 2026 V2EX · 32ms · 3.9.8.5