value = [] print('请输⼊逗号分隔的4位⼆进制数:') items = [x for x in input().split(',')] for p in items: intp = int(p, 2) if not intp % 5: value.append(intp) print(value)
value = [] print('请输⼊逗号分隔的4位⼆进制数:') items = [x for x in input().split(',')] for p in items: intp = int(p, 2) if not intp % 5: value.append(intp) print(value)