使用flag作标签,如有非法特征,flag = ‘illegal’,最后print(flag)即可 s = input().split('.') flag = 'legal' if len(s) != 4: flag = 'illegal' else: for i in s: if&...