众所周知,python是没有指针的专门表示地。因此,python中的->符号实际上是一个返回说明。说明输入的类型定义,→后面是输出也就是返回值类型定义。 例:def twoSum(self, nums: List[int], target: int) -> List[int]: