python 包含中文字串長度 ... def str_len(str): try: row_l=len(str) utf8_l=len(str.encode('utf-8')) return (utf8_l-row_l)/2+row_l except: ...
確定! 回上一頁