'''
translation_table = {ord('A'): ord('O'),ord('K'): ord('O')}
print(translation_table )
# { 65 :79 }
print('MARK'.translate(translation_table) )
# MORO
'''
characters = tuple(ord(c) for c in 'SMEDONRY')
characters
# (83, 77, 69, 68, 79, 78, 82, 89)
guess = tuple(ord(c) for c in '91570682')
print(guess)
# (57, 49, 53, 55, 48, 54, 56, 50)
translation_table = dict(zip(characters, guess))
print(translation_table)
# {68: 55, 69: 53, 77: 49, 78: 54, 79: 48, 82: 56, 83: 57, 89: 50}
print('SEND + MORE == MONEY'.translate(translation_table) )
# '9567 + 1085 == 10652'
python字体获取css反爬可以用到【除非字体反爬用到图片识别】
最新推荐文章于 2024-03-31 08:21:54 发布
此博客主要围绕Python展开,提及利用其获取CSS字体,可应用于爬取场景,可能还涉及图片识别等信息技术相关内容。
2万+

被折叠的 条评论
为什么被折叠?



