作业1
import random
#引入随机数模块
xing=["小白","小黄","小王","小陈","小绿"]
print("学号ttt姓名ttJavatC语言tPythont平均成绩t")
listj=[]
listc=[]
listp=[]
lista=[]
for i in range(5):
#循环5次
n = 20170000 + random.randint(0, 9999)
j = random.randint(60, 100)
listj.append(j)
#放在数组最末端
c = random.randint(60, 100)
listc.append(c)
p = random.randint(60, 100)
listp.append(p)
ave = (j + c + p) / 3
print("%dt%stt%dtt%dtt%dtt%.2f" % (n, xing[i], j, c, p, ave))
ja = listj[0] + listj[1] + listj[2] + listj[3] + listj[4]
ja = ja / 5
lista.append(ja)
print(" Java平均成绩:", format(ja))
ca = listc[0] + listc[1] + listc[2] &#