proteindf_bridge.str_processing モジュール¶
- class proteindf_bridge.str_processing.StrUtils[ソース]¶
ベースクラス:
object- classmethod get_common_str(str1, str2)[ソース]¶
(先頭から)共通文字列を返す
>>> a = 'abcdef' >>> b = 'abcdefg' >>> Utils.get_common_str(a, b) 'abcdef'
- classmethod sort_nicely(given_list)[ソース]¶
人間の直感に合う順序でリストをソートする。 ref: http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html