擅长:python、mysql、java
<p>ValueError可能是最合适的选择。根据它的文档,它是指一个值具有正确的类型,但不合适的值。在</p>
<p><a href="http://docs.python.org/library/exceptions.html#exceptions.ValueError" rel="nofollow">http://docs.python.org/library/exceptions.html#exceptions.ValueError</a></p>