#len(s.getBytes())#



得到 s 字串長度為 3









#len(s1.getBytes())#



得到 s1 字串長度為 15







感謝 sunny lun 提供...



需注意若不是非BIG5碼的中文字,長度被判為 1 長度
arrow
arrow
    全站熱搜

    狼翔月影 發表在 痞客邦 留言(1) 人氣()