作者回复: 你这个理解是错误的,RangeExpression是支持泛型的,它有associatedtype Bound : Comparable,如果是实际类型是Int,那么contains的参数就是Int。 如果是字符串的range,那么contains的参数就是String