From 300d22fcedba675964d715726150bb21022f1cbb Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 26 Nov 2022 20:36:30 +0800 Subject: [PATCH] save project --- diy2.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/diy2.py b/diy2.py index 395ed67..9311fe5 100644 --- a/diy2.py +++ b/diy2.py @@ -1 +1,14 @@ -alist = [88, 75, 72, 82, 90, 85, 78, 91] \ No newline at end of file +import time +from time import time +start=time() +'''''' +list1 = [88, 75, 72, 82, 90, 85, 78, 91] +# list1.sort() +for i in range(len(list1)): + for i1 in range(0,len(list1)-1): + if list1[i1]>list1[i1+1]: + list1[i1],list1[i1+1]=list1[i1+1],list1[i1] +print(list1) +'''''' +end=time() +print(end-start) \ No newline at end of file -- libgit2 0.25.0