我正在通過 plotly 學習 dash 的基礎知識。以下代碼運行良好。import dashfrom dash.dependencies import Input, Outputimport dash_core_components as dccimport dash_html_components as htmlapp = dash.Dash()app.layout = html.Div([ dcc.Input(id='input', value='Enter something here!', type='text'), html.Div(id='output')])@app.callback( Output(component_id='output', component_property='children'), [Input(component_id='input', component_property='value')])def update_value(input_data): return 'Input: "{}"'.format(input_data)if __name__ == '__main__': app.run_server(debug=True) 但是當我運行另一個例子時,我得到了上面代碼的輸出。請提出前進的道路。感謝您的寶貴時間。我嘗試從命令提示符運行代碼,但仍然無法正常工作。我改了 debug='False' 但還是不行
添加回答
舉報
0/150
提交
取消