【发布时间】:2020-01-18 10:47:10
【问题描述】:
它说这个错误:
r = requests.post(webhookLink, data={"embeds":[{"title":\"webhookEmbedTitle\","description":\"webhookEmbedDescription\","color":webhookEmbedColor,"thumbnail":{"url":\"webhookEmbedThumbnail\"}}]})
^
SyntaxError: unexpected character after line continuation character
有人可以帮忙吗?我是 python 新手...
【问题讨论】:
-
如果您是 Python 新手,请练习研究错误消息。谷歌错误是什么,看看它说了什么。
-
看起来您正在尝试使用引号转义
\"但不在字符串内,因此没有任何意义。
标签: python json python-3.x webhooks