例如,我有要输出的数据 进度1:*
progress-moduletrailer 4:****
do_not_progress 6:******
排除2:**
但是我希望它像这样显示
进度
2:
**
等
对此我将不胜感激,非常棘手。
print("Progress",Progress,":",end= " ")
for i in range (Progress):
print("*",end = " ")
print("\n")
print("Progress_module_trailer",Progress_module_trailer,end= " ")
for i in range (Progress_module_trailer):
print("*",end = " ")
print("\n")
print("Do_not_progress_module_trailer",Do_not_progress_module_trailer,end= " ")
for i in range (Do_not_progress_module_trailer):
print("*",end = " ")
print("\n")
print("Exclude",Exclude,end= " ")
for i in range (Exclude):
print("*",end = " ")
print("\n")
print(Progress+Progress_module_trailer+Do_not_progress_module_trailer+Exclude,"Number of students in total")