![](/img/trans.png)
[英]How to run python3 code in VSCode? /bin/sh: 1: python: not found
[英]How do I fix "sh: 1: title: not found" error in python3?
我想为 discord 机器人制作一个 twitch 令牌生成器,但是当我运行它时,我得到了错误
sh: 1: title: not found
我认为出错的代码部分是
success = 0
fail = 0
created = 0
def count():
while True:
os.system(f'title S = {success}/ F = {fail} / C = {created}')
time.sleep(1)
完整的源代码在这里
有人有什么想法吗? 任何帮助,将不胜感激
os.system(f'title S = {success}/ F = {fail} / C = {created}')
你为什么要执行一个你可能应该打印出来的字符串(这是os.system()
所做的)? 就像是:
print(f'title S = {success}/ F = {fail} / C = {created}')
您的 shell 不太可能对此做出良好反应。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.