Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/345.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Python中从HTML表单中获取值?_Python_Hyphen - Fatal编程技术网

如何在Python中从HTML表单中获取值?

如何在Python中从HTML表单中获取值?,python,hyphen,Python,Hyphen,如何在浏览器中写入n和k值?我需要在以后的代码中使用这些值,而不仅仅是在表单之后立即显示 app.layout = html.Div([ html.Form(children=[ html.P(children=["n: ", dcc.Input(type='number', id='n')]), html.P(children=["k: ", dcc.Input(type='number', id='k')]),

如何在浏览器中写入nk值?我需要在以后的代码中使用这些值,而不仅仅是在表单之后立即显示

app.layout = html.Div([
    html.Form(children=[
        html.P(children=["n: ", dcc.Input(type='number', id='n')]),
        html.P(children=["k: ", dcc.Input(type='number', id='k')]),
    ], style={'width' : '30%', 'margin' : '0 auto'}, id="values", hidden=False)
]),