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