Is there an alternative to a while True loop in this context?

后端 未结 0 1500
有刺的猬
有刺的猬 2021-01-03 07:00

I\'m using a while True loop as seen below:

while True:
    try:
        n = int(input("Number: "))
    except ValueError:
        prin         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题