Commit 604fe41a by BellCodeEditor

save project

parent 6a100f28
Showing with 15 additions and 9 deletions
list1=[]
print(list1)
\ No newline at end of file
import time import time
list= [] list1= []
for a in range(0, 1000): list2=[0,0,0,0,0,0,0,0,0,0]
for b in range(0, 1000): start_time=time.time()
--=insert(0, 0) print("开始时间为:",start_time)
b=time.time() for a in range(100000):
list1.extend(list2)
end_time=time.time()
print("结束时间为:",end_time)
c=b-a c=end_time-start_time
print("总共耗时:",c)
print("总共耗时:"c) \ No newline at end of file
\ 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