Commit dbc55a04 by BellCodeEditor

auto save

parent e828a430
Showing with 2 additions and 22 deletions
# import time import itchat
# list1 = [] \ No newline at end of file
# start_time = time.time()
# for a in range(0, 1000):
# for b in range(0, 1000):
# list1.append(0)
# print(1)
# end_time = time.time()
# pass_time = end_time - start_time
# print(pass_time)
import time
a = [88,75,72,82,90,85,78,91]
n = len(a)
m = n
for i in range(0,m-1):
for b in range(0,n-1):
if a[b] > a[b+1]:
a[b],a[b+1] = a[b+1],a[b]
m -= 1
print(a)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment