【问题标题】:Taking input, processing it in python code and display output in tables on html page接受输入,在 python 代码中处理它并在 html 页面上的表格中显示输出
【发布时间】:2021-10-22 12:46:23
【问题描述】:

我对 Django 很陌生,并且努力做一些非常简单的事情。我想使用 Django 框架将布尔表达式转换为真值表。我有 python 代码,我想知道如何连接它,让来自 html 的输入进入该 python 代码,得到处理,输出显示在 html 页面的表格中。

【问题讨论】:

    标签: python django django-forms modelform


    【解决方案1】:

    你必须学习 get 和 post 方法在 django 中是如何工作的,然后尝试在 django-views 中连接你的 html 模板,然后在 views 函数中渲染 html 模板 你可以在youtube上搜索。有很多视频可以帮助您。

    【讨论】:

      猜你喜欢
      • 2013-01-28
      • 1970-01-01
      • 2016-01-18
      • 2021-05-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-11
      相关资源
      最近更新 更多