@client.event
async def on_message(message):
await client.process_commands(message)
if message.content.startswith('sa'):
await message.channel.send('as')
Run Code Online (Sandbox Code Playgroud)
这是我的代码。as当我说的时候它应该说sa。它工作正常,但是当我编写salah或以 开头的任何内容时sa,它会检测到它并做出响应。它不应该那样工作。我阅读了文档但找不到任何东西,我知道这是因为.startswith但我找不到任何替代品。
当我尝试在 SingleScrollChildView 中使用 Card 时,出现以下错误:
\nThe following assertion was thrown during layout:\nA RenderFlex overflowed by 178 pixels on the bottom.\n\nThe relevant error-causing widget was: \n Column file:///C:/Users/emirs/AndroidStudioProjects/view_met/lib/home.dart:197:16\nThe overflowing RenderFlex has an orientation of Axis.vertical.\nThe edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex.\n\nConsider applying a flex factor (e.g. using an Expanded widget) to force the …Run Code Online (Sandbox Code Playgroud)