Handling Exception in Python3

前端 未结 0 1622
悲哀的现实
悲哀的现实 2021-01-08 00:47

I\'m trying to run this:

try:
    number = int(number)
except ValueError:
    raise InvalidValueError("%s is not a valid base10 number." % number)
<         


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