X: C:\code> C:\python27\python >>> S = u'A\xc4B\xe8C' >>> print S AÄBèC >>> len(S) 5 >>> S.encode('latin-1') calls 'A\xc4B\xe8C' >>> S.encode('utf-8') ...
確定! 回上一頁