Python Challenge 第 2 关攻略:ocr
text="那一大推乱码"
方案1
from collections import Counter
print(Counter(text))
方案2
import string
>>> filter(lambda x: x in string.letters, text)
'equality'
text="那一大推乱码"
方案1
from collections import Counter
print(Counter(text))
方案2
import string
>>> filter(lambda x: x in string.letters, text)
'equality'