【问题标题】:check True in .format python discord检查 True in .format python discord
【发布时间】:2018-07-23 20:53:01
【问题描述】:
await Bot.send_message(message.channel, "**{}**, you have:\n{}".format(message.author.name, author_dragon > 0))

在第二个{}只出现True,我想让他显示一个类似????的表情符号,我该怎么办? 给我完整的答案,谢谢!

【问题讨论】:

    标签: python discord discord.py string.format


    【解决方案1】:

    您可以只发送 unicode 字符。它将自动转换为表情符号

    await Bot.send_message(message.channel, "**{}**, you have:\n?".format(message.author.name))
    

    【讨论】:

      猜你喜欢
      • 2021-08-30
      • 2018-11-23
      • 1970-01-01
      • 1970-01-01
      • 2022-12-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-01
      相关资源
      最近更新 更多