
完成以下 Python 函数: python fromtypes import List, Tuple def sum_...
Prompt
完成以下 Python 函数: python fromtypes import List, Tuple def sum_product(numbers: List[int]) -> Tuple[int, int]: """ 对于给定的整数列表,返回一个由列表中所有整数的和与积组成的元组。空的和应等于 0,空的积应等于 1。 >>> sum_product([]) (0, 1) >>> sum_product([1, 2, 3, 4]) (10, 24) """