s =u'中文' # Unicode string. >>> print len(s), s[0] # index 0 fetches the first character. 2 中. >>> t='中文' # byte string.
確定! 回上一頁