2024-04-26 22:14:29 发布
网友
unidecode将μ转换为m。但是我想要mu。是否有一个python包可以这样做(也适用于其他希腊字母)?你知道吗
unidecode
μ
m
mu
>>> import unidecode >>> unidecode.unidecode(u'μ') 'm'
我想这很管用™地址:
import unicodedata def greek_to_name(symbol): greek, size, letter, what, *with_tonos = unicodedata.name(symbol).split() assert greek, letter == ("GREEK", "LETTER") return what.lower() if size == "SMALL" else what.title()
我想这很管用™地址:
相关问题 更多 >
编程相关推荐