跳转至

2023 “网信柏鹭杯”大学生网络空间安全精英赛 签到题

约 25 个字 14 行代码 预计阅读时间 1 分钟

题目

qd.txt

WriteUp

def open_file():
    with open('qd.txt','r') as f:
        return f.read()

def get_flag():
    flag = open_file()
    flag = flag.split('\n')
    # 统计空格个数
    flag = [x.count(' ') for x in flag]
    return flag

# flag = [102, 108, 97, 103, 123, 73, 83, 69, 67, 45, 101, 70, 56, 120, 50, 66, 118, 49, 118, 105, 119, 57, 101, 70, 118, 97, 103, 105, 118, 120, 48, 89, 110, 118, 51, 106, 108, 97, 105, 48, 118, 76, 125]
flag = get_flag()
[print(chr(x),end='') for x in flag]