#遍历字符串之后去重,存入字典,找出最小的value对应的key值输出 while True: try: str1 = input() list1 = [] dict1 = {} &...