Average score of seeking input

= LIS [] 
SUM = 0
the while True:
Content = INPUT ( "Please enter the results (Zhang format _44), type Q to exit:")
IF Content == "Q":
BREAK
the else:
LIS .append (Content)
I in LIS for:
S = i.split ( "_")
SUM = SUM + int (S [. 1])
Print (SUM / len (LIS))

Guess you like

Origin www.cnblogs.com/hadibingjing/p/10941605.html