题解 | #列表的最大与最小#
列表的最大与最小
https://www.nowcoder.com/practice/4228edf66a8f4a79808accc55e470520
num_list = [] for i in range(41): j = i j = j+10 num_list.append(j) i = i + 1 print(num_list) print(num_list[0],num_list[len(num_list) - 1])
列表的最大与最小
https://www.nowcoder.com/practice/4228edf66a8f4a79808accc55e470520
num_list = [] for i in range(41): j = i j = j+10 num_list.append(j) i = i + 1 print(num_list) print(num_list[0],num_list[len(num_list) - 1])
相关推荐