2024-05-16 00:19:40 发布
网友
有什么方法可以允许这样做“>;”当用户按enter或return时出现,而不是执行以下操作:
cout = input(">") sip = input(">") vat = input(">")
如果要生成一个将打印“>;”的循环一进去就试试这个
while True: # infinite loop userInput = input("Enter Text: ") if userInput == "": print ("> ") # prints ">"
如果要生成一个将打印“>;”的循环一进去就试试这个
相关问题 更多 >
编程相关推荐