【发布时间】:2025-12-26 08:05:16
【问题描述】:
如何在 Python 中将输入函数与烧瓶一起使用,以获取用户输入,然后根据该响应发送响应。尝试不断地这样做,比如对话流方法。
试图公开此命令行终端以在 UI 中捕获用户输入捕获
#Below is the code
df_final = pandas_dedupe.dedupe_dataframe(df,['Company'])
#Below is the resultant output which get displayed in terminal which asks for user response.
#I'm trying to expose this to user and get his response.
Company : reliance captal
Company : reliance captive
0/10 positive, 0/10 negative
Do these records refer to the same thing?
(y)es / (n)o / (u)nsure / (f)inished
【问题讨论】:
-
您是否尝试过使用将 POST 请求与命令数据一起发送到服务器的表单?您可以使用 AJAX 来避免重新渲染。
标签: python python-3.x flask flask-wtforms python-webbrowser