python原始碼中str.casefold()方法的實作在哪里?我在 github 存盤庫 cpython 中搜索了字串“casefold”。我找到了一個測驗,但沒有找到方法的定義。
https://docs.python.org/3/library/stdtypes.html#str.casefold
https://github.com/python/cpython
https://github.com/python/cpython/blob/83d544b9292870eb44f6fca37df0aa351c4ef83a/Lib/test/test_unicode.py#L829
uj5u.com熱心網友回復:
casefold 調度程式在那里實作,您只需查找它調度到的函式。
https://github.com/python/cpython/blob/f4c03484da59049eb62a9bf7777b963e2267d187/Objects/unicodeobject.c#L10967
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/418887.html
標籤:
