I am a beginner in python and made a couple of programs, one of the same things I see, is that when ever I make a code like this
do = int(input("Enter number >"))
I accidentally type a letter, I want to be able to give like a wrong input message and try again, but python would always detect the difference in variable container.
- 积分
0 - 话题
0 - 评论
3162 - 注册排名
1896
You can catch
ValueError
: