六大排序算法及部分动画演示(Python)
import matplotlib.pyplot as pltimport numpy as npfrom IPython.display import display, clear_outputfrom palettable.colorbrewer.qualitative import * # 调色板冒泡排序def bubble_sort(arr): list_len = len(arr) try: arr = arr.tolist() except: