gpt4 book ai didi

python - 将带有对话框的 bash 脚本转换为 python

转载 作者:太空狗 更新时间:2023-10-29 12:40:22 34 4
gpt4 key购买 nike

<分区>

我目前有一个 bash script安装具有许多选项和功能的 Web 服务器。目前我在远程 linux 服务器上下载脚本并通过 ssh 执行它。

此脚本使用对话框,以便最终用户可以输入用户名、密码等信息来创建。使用路径、域名等....

我想重写这个在 python 中变得庞大的脚本,同时保持相同类型(对话框)的交互性。是否有 python 的解决方案/模块?知道脚本运行的远程服务器是没有像Qt、Gtk这样的图形系统的服务器,只是console。我觉得很有必要用curses
bash 对话框定义:

Dialog is a utility to create nice user interfaces to shell scripts, or other scripting languages, such as perl. It is non-graphical (it uses curses) so it can be run in the console or an xterm.

例子:
enter image description here

我正在寻找 python 上的等效项谢谢

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com