在Python中使用help帮助 >>> import numpy >>> help(numpy.argsort) Help on function argsort in module numpy.core.fromnumeric: argsort(a, axis=-1, kind='quicksort', order=None) Returns the indices that would sort an array. Perform an…
enumerate函数用于遍历序列中的元素以及它们的下标,可以非常方便的遍历元素. 比如我在往excel中写数据时就用到了这个函数: data = [] data.append(('预约码', '车牌号码', '进校时间段', '出校时间段', '进校校区',)) for i in car_orders: data.append((i.order_number, i.car_number, i.during_in_time, i.during_out_time, i.in_school)) fo…