摘要:
import numpy as np import random x = np.array([0,1,2,3,4,5,6,7,8,9],dtype=np.float32) y = np.array([1.8,2.1,2.3,2.85,3.0,3.3,4.9,5.45,5.0,6.0]) k = ra 阅读全文
摘要:
def qsort(array): if len(array) <= 1: return array pivot=array.pop() leftarray = [i for i in array if i < pivot] rightarray = [i for i in array if i > 阅读全文