TypeError:“str”对象不可调用di python 2.7

2024-06-26 13:29:08 发布

您现在位置:Python中文网/ 问答频道 /正文

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: inclienttruemessageforifhelpmsg