@@ -0,0 +1,452 @@
+# -*- encoding: utf-8 -*-%0A%0A%0Adef select_sort(st_bf):%0A    length = len(st_bf)%0A    for i in xrange(length - 1):%0A        temp, location = st_bf%5Bi%5D, i%0A%0A        # %E6%89%BE%E5%87%BA%E5%89%A9%E4%BD%99%E9%83%A8%E5%88%86%E6%9C%80%E5%B0%8F%E5%80%BC%0A        for j in xrange(i+1, length):%0A            if st_bf%5Bj%5D %3C temp:%0A                temp, location = st_bf%5Bj%5D, j%0A%0A        if location != i:%0A            st_bf%5Blocation%5D, st_bf%5Bi%5D = st_bf%5Bi%5D, st_bf%5Blocation%5D%0A        print st_bf%0A%0A%0Ast_bf = %5B6, 5, 3, 1, 8, 7, 2, 4, 2%5D%0Aselect_sort(st_bf)%0A

add selection_sort.py