Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
字母表(及其索引)可以在这里找到:
http://www.garykessler.net/library/base64.html
有比alphabet = ['A','B',...]表示这个字母表更短的方法吗?
alphabet = ['A','B',...]
您可以使用该string模块
string
import string alphabet = string.ascii_uppercase + string.ascii_lowercase + string.digits + '+/'
字符串也是序列。
'ABCD...'