ValueError 传入一个调用者不期望的值,即使值的类型是正确的
Python常用单词意思
序列:sequence 字符:character 字符串:string 格式:specification
转义序列:escape sequence 原始:raw 数据类型:Date Type 声明语句:statement
物理行:physical line 逻辑行:logical line 缩进:indentation 表达式:expressions
函数:function 形参:parameters 实参:argument 全局变量:global 语句
关键字参数:Keyword Arguments 文档字符串:Documentation Strings
模块:Modules 类:class 包:package 装饰器:decorador
属性引用:Attribute Reference 继承:Inheritance 类的属性:Class Attribute
位置参数:position argument 生成器:generator 负索引:negative index
strip:移除空白 断言:assert 联合:join 替代:replace 切分:split