That's quite intentional. If you are passing the wrong type of value to a function then your code should crash. The code will also crash if I pass a string to a function that expects an integer. Code ...
Not to mention python tends to prefer duck typing a lot and most of the examples are counter to that.
一些您可能无法访问的结果已被隐去。
显示无法访问的结果