Commit 231d9c0d by BellCodeEditor

save project

parent 1d2a8dff
Showing with 9 additions and 10 deletions
import time
yyds=[]
start_time = time.time()
print("开始的时间为:", start_time)
for i in range(0,1000000):
yyds.append(i)
print(yyds)
end_time = time.time()
print("时间为:", end_time-start_time)
\ No newline at end of file
alist = [12,43,65,87,90,25,76]
n=len(alist)
for j in range(n-1):
for i in range(n-1):
if alist[i]>alist [i+1]:
alist[i],alist[i+1]=alist[i+1],alist [i]
print(alist)
\ 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