while True:
op_list = []
for op in client.longPoll():
op_list.append(op)
for op in op_list:
sender = op[0]
receiver = op[1]
message = op[2]
msg = message.text
if msg("help"):
receiver.sendMessage('why?')
if msg("help"):
TypeError:'str'对象不可调用,有人能帮我吗?在
Tags:
问题出在12号线。msg是一个文本,显然它不能是可调用的。如果你想比较两个字符串,你应该做一个equal to。在
相关问题 更多 >
编程相关推荐