From 4494a05c909ed71356873e3295c1af5c7ac11201 Mon Sep 17 00:00:00 2001 From: zhang Date: Sat, 14 Mar 2020 19:21:48 +0800 Subject: =?UTF-8?q?python=E6=90=9C=E7=B4=A2=E4=B8=8E=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- algo/sort_and_search.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 algo/sort_and_search.py diff --git a/algo/sort_and_search.py b/algo/sort_and_search.py new file mode 100644 index 0000000..2c89fe5 --- /dev/null +++ b/algo/sort_and_search.py @@ -0,0 +1,10 @@ + +import bisect +from collections import namedtuple + +bisect.bisect_left() + +l = [1, 3, 2] +l.sort() + +namedtuple -- cgit v1.2.3