# 找出列表中的最大值和最小值 def find_max_min(numbers): max_num = numbers[0] min_num = numbers[0] for num in numbers: if num > max_num: max_num = num if num < min_num: