Python: How do I satisfy either or of two completely different conditions in a while loop

后端 未结 0 427
面向向阳花
面向向阳花 2021-01-25 05:42

I wanted to have a while loop that takes in a string of either only numbers, the string "value", or string "v". I tried doing :

num = input(\'         


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