您还可以让库给出预先格式化了的错误字符串。
You can also have the library give you a preformatted error string.
该变量包含最后一个失败的sql语句的错误字符串。
This variable contains the error string from the last failed SQL statement.
error_message_on——返回指定的对象属性的错误字符串。
Error_message_on - returns the error string for the specified attribute of the object.
And what do I do if I get a key error?
如果我得到了关键字错误该怎么办呢?
If not I'll get a key error.
如果不在,我会得到一个关键字错误。
应用推荐