Commit dc670ce4 by BellCodeEditor

save project

parent dd1223ce
Showing with 13 additions and 17 deletions
......@@ -12,3 +12,4 @@ print("结束时间为:",end_time)
result = end_time - start_time
print("总共耗时:",result)
num_list = []
for i in range(25):
num_list.append([0] * 15)
for i, row in zip(range(1,26),num_list):
for j, colors in zip(range(1,16),row)
if colors !=0:
pygame.draw.rect(screen,colors,
(j * 20-20, i * 20-20, 20, 20))
pygame.draw.rect(screen, (255, 255, 255),
(j * 20-20, i * 20-20, 20, 20), 1)
new_list []
for i in range(25):
new_list.append([0] * 15)
row_index = 24
for i in range(24, -1, -1):
is_full = True
\ No newline at end of file
alist = [88,75,72,82,90,85,78,91]
n = len(alist)
for i in range(0,n-1):
for j in range(0,n-1):
if alist[j]<alist[j+1]:
alist[j],aist[j+1]=alist[j+1],alist
print(alist)
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