您应该使用PyICU
>>> from icu import UnicodeString, Locale
>>> tr = Locale("TR")
>>> s = UnicodeString("i")
>>> print(unicode(s.toUpper(tr)))
?
>>> s = UnicodeString("I")
>>> print(unicode(s.toLower(tr)))
?
>>>
Python和土耳其语大写
您应该使用PyICU
>>> from icu import UnicodeString, Locale
>>> tr = Locale("TR")
>>> s = UnicodeString("i")
>>> print(unicode(s.toUpper(tr)))
?
>>> s = UnicodeString("I")
>>> print(unicode(s.toLower(tr)))
?
>>>