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.
我正在使用 Django 构建我的应用程序,我需要从数据库中检索数据并将其放入 html 页面中的动态表中。请帮忙。
使用模板!
<table> {% for key, value in data %} <tr> <td>{{ key|title }}</td> <td>{{ value }}</td> </tr> {% endfor %} </table>