-1
나는 다양한 모듈에서 학생들의 점수를 대표 할 테이블을 만들 필요가
파이썬에서 보고서 테이블 만들기. 나는 다음과 같은 표현하고 생각하고 있었는데 : 예를 들어중첩 된 목록
Students, a list of strings that are student names. For each i such that
0 <=i <= len(Students) - 1, we refer to Students[i] as the i-th student.
Modules, a list of strings that are modules names. For each i such that
0 <=i <=len(Modules) - 1, we refer to Modules[i] as the i-th module.
Marks a table whose rows correspond to the students and columns correspond to the modules. Marks[i][j] is an integer number defined as follows.
{ If Marks[i][j] = -1 this means that the i-th student is not registered
for the j-th module.
{ If Marks[i][j] =>0 then this is the mark of the i-th student for the
j-th module. We can assume that the marks are in range 0-100,
there is no need to check the validity of the data.
을, 내가 가진 :
students=['Artur', 'Igor', 'David', 'Andy']
modules=['DM', 'ISD', 'INS', 'IS']
marks=marks[i][j]=int
for i in range(0, len(students)-1) #i ranges over all row numbers
for i in range(0, len(students)-1) #j ranges over all indices
print(a[i][j])
내가 조금이 제대로 그래서 나중에 행의 평균을 계산 할 수있는 테이블을 만드는 방법을 혼란 스러워요 , 기둥, 자국 및 학생 보고서 인쇄. 알고리즘을 수정하여 정상적인 테이블을 만들 수있는 방법이 있습니까?