题目:Base64编码 text = input().strip() text = [ord(x) for x in text] #获取ASCII数组 index = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" rest = len(text) % 3 #转成二进制字符串 bi = "" for str in text: curStr = format(str, '#010b')[2:] bi += curStr #二进制转索引,先看...