Python elif语法

2024-09-29 22:36:20 发布

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

获取错误:

ev3rest@EV3RESTs-MBP ~/Desktop> python telegram.py
  File "telegram.py", line 55
    elif message == '/start':
       ^
SyntaxError: invalid syntax

代码:

if message == '/help':
send_respond ('/help respond message', from_id)
elif message == '/start':
    send_respond ('/help - Show available commands list', from_id)
elif message == 'Привет':
    send_respond ('Приветики!', from_id)

不知道如何修复它,我检查了选项卡,但这不起作用:/


Tags: frompysendidmessage错误helpstart

热门问题