def grade_1(mystr,nowgrade): if len(mystr)<=4: nowgrade+=5 elif len(mystr)>=8: nowgrade+=25 else: nowgrade+=10 return nowgrade def grade_2(mystr,nowgrade): #计数:大写,小写,数字,符号 times=[0,0,0,0] for i in mystr: #数字 if str.isdigit(i)...