我必須在 Python 和 HTML 中使用“或”。 <div> {% if imp[3][0] == 'abc' || imp[3][0] == 'def' %} <p>yes</p> {% endif %} </div>我收到一個錯誤:jinja2.exceptions.TemplateSyntaxError: expected token 'name', got '|'但是, && 可以工作。反正?
使用 Python 編寫 HTML 中的 if 語句
寶慕林4294392
2022-05-11 14:35:40