如何将输入转换为int() ?
的例子:
input = await bot.wait_for("message")
i was try did convert likeint(answer)
谢谢。
编辑:获取错误TypeError: int() argument must be a string, a bytes-like object or a real number, not 'Message'
如何将其转换为int -
# Convert the input to an integer
result = int(input.content)