for stu in studen_xx:
print( %d %s %s %s %s %(i,stu[ num ],stu[ name ],stu[ sex ],stu[ age ]))
def main():
while True:
print_xx()
rr input( 请输入你的选项 )
if rr 1 :
add_xx()
elif rr 2 :
del_xx(studen_xx)
elif rr 3 :
sum_xx()
elif rr 4 :
x_quit input( 你确定退出 (Y/S) )
if x_quit Y :
break
main()