【发布时间】:2014-09-11 20:30:48
【问题描述】:
所以我有一个名为 read 的类,它充满了 Def,我试图调用其中一个,我得到一个“绑定方法”错误,你怎么看。
from ExcelRead import Read
t = Read()
L = t.other
print L
def Other():
User = []
Excel = []
lst = OpenExcel()
User = OpenFile("whatever.txt")
for item in lst:
Excel.append(str(item.value))
Excel = [line.strip() for line in Excel]
Differ = comp(User, Excel)
print Differ
这是调用其他函数
other 是我要调用的函数的名称,这个函数确实返回一个值。谢谢你的帮助
【问题讨论】:
-
other()真的在上课吗? -
什么是“绑定方法错误”?我从来没有见过这样的事情。复制并粘贴实际的错误消息和回溯。
标签: python