Commit 6441da7e by BellCodeEditor

auto save

parent c6188a1e
姓名,数学,英语
小虎,99,97
小红,96,98
小明,67,87
while True:
\ No newline at end of file
import pygame #冒泡排序
# a = [5,33,21,67,39,73,7,43]
# for i in range(0,len(a)-1):
# for j in range(0,len(a)-i-1):
# if a[j] > a[j+1]:
# a[j],a[j+1] = a[j+1],a[j]
# print(a)
# 初始化pygame,为使用pygame做准备 #选择排序
pygame.init() # a = list(map(int,input('请输入:').split(',')))
# for i in range(0,len(a)-1):
# index = i
# for j in range(i+1,len(a)):
# if a[j] < a[index]:
# index = j
# if index != i:
# a[i],a[index] = a[index],a[i]
# print(a)
# 插入排序
# a = list(map(int,input('请输入:').split(',')))
# for i in range(1,len(a)):
# key = a[i]
# j = i-1
# while j >= 0 and key < a[j]:
# a[j+1] = a[j]
# j -= 1
# a[j+1] = key
# print(a)
a = [28,32,14,33,23]
a.clear()
print(a)
# 创建一个窗口
??
\ 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