解析 解答:lst = [3, 8, 2, 5, 1, 9, 4]max_num = lst[0]min_num = lst[0]for i in range(1, len(lst)):if lst[i] > max_num:max_num = lst[i]if lst[i] < min_num:min_num = lst[i]print('最大值为:', max_num)print('最小值为:', min_num) ...