- 解法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=""
结果