我正在刻意学习短跑的基本知识。以下代码工作正常。
import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
app = 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',但仍然不起作用