如何在前端与python终端交互

2024-04-29 02:14:53 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试将我正在处理的python项目转换为一个网站。我打算用Django/React来写它。
该项目使用telethon从电报中获取消息,并在python终端中运行一个交互式程序来启动会话。例如:

Client.start()
##enter phone number:
##enter passcode we sent:
##enter 2fa password:

我怎样才能从前端与此交互


Tags: 项目django程序client终端消息number网站