【问题标题】:Getting users input then outputting it获取用户输入然后输出
【发布时间】:2021-09-24 17:13:28
【问题描述】:

我正在尝试以一种简单的方式安装 powercord 主题,但我不确定如何让用户输入然后在 os.system 命令中输出,这就是我现在所拥有的

import os
import colorama
import time

input("Hi please insert a github powercord theme link: ")

themelink = ""

print("installing powercord theme...")

os.system("cd C:/Users/kai78/powercord/src/Powercord/themes && git clone {}".format(themelink))```

【问题讨论】:

    标签: python input operating-system


    【解决方案1】:

    当你得到它时,你必须保存你的输入。

    some_input = input('Type something: ')
    

    【讨论】:

    • 它给了我同样的错误致命:存储库'{coolinput}'不存在
    • 尝试检查您的路径,也许您将它安装在不同的目录中,但在他们的不和谐中它显示:cd powercord/src/Powercord/themes && git clone
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-31
    • 1970-01-01
    • 2013-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多