攻防世界-转轮机加密

  • 解法1:

参考:https://blog.csdn.net/weixin_45556441/article/details/110851390


  • 解法2:
book = ["NACZDTRXMJQOYHGVSFUWIKPBEL","FHTEQGYXPLOCKBDMAIZVRNSJUW","QGWTHSPYBXIZULVKMRAFDCEONJ","KCPMNZQWXYIHFRLABEUOTSGJVD","SXCDERFVBGTYHNUMKILOPJZQAW","EIURYTASBKJDFHGLVNCMXZPQOW","VUBMCQWAOIKZGJXPLTDSRFHENY","OSFEZWAXJGDLUBVIQHKYPNTCRM","QNOZUTWDCVRJLXKISEFAPMYGHB","OWTGVRSCZQKELMXYIHPUDNAJFB","FCUKTEBSXQYIZMJWAORPLNDVHG","NBVCXZQWERTPOIUYALSKDJFHGM","PNYCJBFZDRUSLOQXVETAMKGHIW"]
length = len(book[0])
res = ""
for i in range(0,length):
    for ele in book:
        res = res + ele[i]
    print(res.lower())
    res=""

结果

posted @ 2024-11-19 02:19  wyuu101  阅读(14)  评论(0编辑  收藏  举报