Lovi <1668151...@qq.com> added the comment:
Sorry, I made a mistake. The center char of '12345' is '3' and the center char of 'abcd' is '' because it doesn't have the most central character. In my opinion, with center_char, when you need the center character of a string you can get it directly with str.center_char instead of tedious index and calculation. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39036> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com