# coding=utf-8 # 存在一个bug,就是127和0开头的它需要放在合法校验之前检查,否则非法记数会可能比多记 # lst = [A, B, C, D, E, 错误的, 私有IP] lst = [0, 0, 0, 0, 0, 0, 0] import re val_lst = [] while True: try: in_str = raw_input().split('~') ip = in_str[0] &...