📜  python字符串用数字替换字母 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:10.807000             🧑  作者: Mango

代码示例1
from string import ascii_letters

code = code = "1111702460830000Lu05"
code = "".join([str(ascii_letters.index(c)) if c in ascii_letters else c for c in code])
print(code)