错误代码 TypeError: xxx() missing 1 required positional argument: ‘astr’ 错误原因 没有对类进行实例化如下。 Solution.isUnique(s) 解决方法 实例化类如下。 Solution().isUnique(s)