Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我编写了一个不和谐的面板,我想用 quart python 将文本放在另一个变量中:
<img src="{{url_for('static', filename=f'assets/IconDiscord/{0}.png'.format(connect))}}"
我得到这个错误:
jinja2.exceptions.TemplateSyntaxError: expected token ',', got 'string'
如何在图像 url 中插入变量的内容?