python3中的len 2018-04-26 本文已影响0人 EmptyBottl_520d len('中国人') 3 len('中国人'.encode('utf-8')) 9 所以len 测Unicode字符串得出的是字符个数 测 二进制表示的字符串得出的是字节个