我已经安装了不和.py重写并尝试使用vscode编写代码,但intellisense无法使用它。当使用numpy或基本python模块时,它工作得很好,但它不适用于不和.py. 在
@client.event
async def on_message(message):
# we do not want the bot to reply to itself
if message.author == client.user:
return
message. # this shows no suggestions aside from other words in the code
您需要告诉Intellisense消息参数的类型,以便它能够自动完成。
您可以执行以下操作
async def on_message(message:Type):
相关问题 更多 >
编程相关推荐