You can use type(None) to get the type object, but you want to use isinstance() here, not type() in {...} : assert isinstance(value, (str, ...
確定! 回上一頁