攻防世界-轉輪機加密

wyuu101發表於2024-11-19
  • 解法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=""

結果

相關文章