Commit 08bab30f by BellCodeEditor

auto save

parent 8b90b8d5
Showing with 26 additions and 4 deletions
import time as a
import time
start_time = time.time()
print("开始时间为:",start_time)
for i in range(0,1001):
\ No newline at end of file
for a in range(0,1001):
for b in range(0,1001):
for c in range(0,1001):
if a**2 + b**2 == c**2:
print("a,b,c的值分别为:",a,b,c)
end_time = time.time()
print("结束时间为:",end_time)
import time
list = []
start_time = time.time()
for a in range(0,1001):
for b in range(0,1001):
#list.insert(1,0)
list.append(0)
end_time = time.time()
time = end_time - start_time
print(":",time)
\ No newline at end of file
abc = [20,17,9,13,5,6]
n = len(abc)
for j in range(0,5):
if abc[a] > abc[a+1]:
abc[a],abc[a+1]
\ 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