正则表达式解法:import re while True: try: s=input() count,flag=0,True if re.findall("[a-zA-Z]",s): count+=1 if not (s.isupper() or s.islower()): count+=1 if re.findall("\d",s): count+=1 if re.findall("[^0-9a-zA...