当我单击动态python-cgi html页面中的按钮时,如何触发python代码?

时间:2019-04-12 05:46:28

标签: python html cgi

我正在使用python-cgi脚本创建一个小型应用程序,因此我所有的html和javascript都在python打印方法中创建

我有一些输入类型的按钮,我想基于单击的按钮触发python脚本

print('<button type="button" id="desc" name="desc">Describe</button>')
if "desc":
    doStuff()

0 个答案:

没有答案