下面给出了html代码,我使用python创建了flask服务器。我来了
只使用checkboxSelectCombo,在FlaskUI中选中复选框后,我想在单击任何flask按钮时用python打印这些值。
如何在python中获取和打印这些值?
如果有人知道答案,请帮帮我。在
谢谢你
OPTIMIZATIONtable {
font-family: arial, sans-serif;
border-collapse: collapse;
background-color: #dddddd;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 1px;
}
PORTFOLIO OPTIMIZATION
.combo-label {margin-bottom:.5em;}
SELECT THE STOCK OPTIONS
SELECT THE INPUT DATE
ENTER CONSTRAINTS CRITERIA
Cheap | Moderate | Expensive | PUT | CALL | Not Recommended | Highly Liquid | Moderately Liquid | Less Liquid | MPO | PO | LPO | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Group_Min | ||||||||||||
Group_Max |
var colors = [
{ Name: "FP FP Equity" },
{ Name: "SAN FP Equity" },
{ Name: "NOK1V FH Equity" },
{ Name: "SAN SQ Equity" },
{ Name: "EOA GY Equity" },
{ Name: "SIE GY Equity" },
{ Name: "ENI IM Equity" },
{ Name: "UC IM Equity" },
{ Name: "INGA NA Equity" },
{ Name: "TEF SQ Equity" },
{ Name: "BNP FP Equity" },
{ Name: "BBVA SQ Equity" },
{ Name: "ALV GY Equity" }
];
$(function () {
$("#singleSelectCombo").igCombo({
width: 300,
dataSource: colors,
textKey: "Name",
valueKey: "Name",
dropDownOnFocus: true,
dropDownOrientation: "bottom"
});
$("#multiSelectCombo").igCombo({
width: 300,
dataSource: colors,
textKey: "Name",
valueKey: "Name",
multiSelection: {
enabled: true
},
dropDownOrientation: "bottom"
});
$("#checkboxSelectCombo").igCombo({
width: 300,
dataSource: colors,
textKey: "Name",
valueKey: "Name",
multiSelection: {
enabled: true,
showCheckboxes: true
},
dropDownOrientation: "bottom"
});
});
Simple tablesOPTIMIZED VALUES
{% for table in tables %}
{{titles[loop.index]}}
{{ table|safe }}
{% endfor %}
Python后端代码
^{pr2}$