问题描述
我需要创建一个包含3个列表的表,其中2个必须是headline和leftline。最后一个将2d表格嵌套在其中。我不知道怎么解决。请帮帮我。
def createLists():
courseCodes = ['SWE4101','SWE4102','SWE4103']
studentIDs = ['1807625','1782531','1839852']
studentGrades = [[85,62,48],[94,78,43],[72,58,78]]
printLists(courseCodes,studentIDs,studentGrades)
return
def printLists(courseCodes,studentGrades):
for count in range(0,len(studentIDs)):
print(" ",studentIDs[count],end = " ")
print()
for count in courseCodes:
print(count)
for row in range(len(studentGrades)):
for column in range(len(studentGrades)):
print (" ",studentGrades[row][column],end = " ")
print()
createLists()
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)