"计算数组中最小的两个数的和" #!usr/bin/python3 #-*- coding:utf-8 -*- numbers=np.array((4,3,7,5,6)) def sum_two_smallest_numbers(numbers): numbers.sort() return numbers[0]+numbers[1]
标签:usr bin body sort utf-8 sum .so post array
"计算数组中最小的两个数的和" #!usr/bin/python3 #-*- coding:utf-8 -*- numbers=np.array((4,3,7,5,6)) def sum_two_smallest_numbers(numbers): numbers.sort() return numbers[0]+numbers[1]
标签:usr bin body sort utf-8 sum .so post array
原文地址:http://www.cnblogs.com/lmt921108/p/8023171.html