student = [72,89,65,58,87,91,53,82,71,93,76,68]
sum = 0
for i in student:
sum = sum + i
print(sum/len(student))
a=b=c=d=e=0
for i in student:
if i/10<6:
e = e + 1
elif i/10<7:
d = d + 1
elif i/10<8:
c = c + 1
elif i/10<9:
b = b + 1
else:
a = a + 1
print("A",a,"人"," B",b,"人"," C",c,"人"," D",d,"人"," E",e,"人")
Name = ["张晓林","王强","高文博","刘丽冰","李雅芳","张立华","曹雨生","李 芳","徐志华","李晓力","罗 明","段 平"]
Grade = [91.00,87.00,88.00,38.00,92.00,74.00,90.00,59.00,91.00,78.00,67.00,75.00]
for i in range(0,len(Grade)):
if Grade[i]<60:
print(Name[i])
for n,g in zip(Name,Grade):
if g<60:
print(n)
jishu = 0
oushu = 0
i = 1
while(i>=0 and i!=-1):
i = int(input())
if i>=0:
if i%2==0:
oushu = oushu + i
else:
jishu = jishu + i
else:
break
print("奇数:",jishu," 偶数:",oushu)
list = [100]
x = int(input())
while x != -1 :
if x > list[-1]:
list.append(x)
else:
for i in range(0,len(list)):
if x < list[i]:
list.insert(i,x)
break
x=int(input())
print(list)
a = [1]
for i in range(2,101):
a.append(i)
x = int(input())
while(x!=-1):
for j in a:
if j % x == 0:
a.remove(j)
x = int(input())
print(a)
list1 = [25,369,1478,54,2,36]
list2 = [6,258,14,36,47,2145]
List = list1 + list2
List.sort()
print(List)
List = [1,2,3,4,5,6,7,8,9,10]
num = 0
Sort = []
while len(List)!=0:
Temp = []
for i in List:
num = num + 1
if num%3 == 0:
Temp.append(i)
Sort.append(i)
for j in Temp:
List.remove(j)
print(Sort)
绝情的女朋友,在这里偷偷diss她一下