比如下面s是unicode(所以不需要再decode,而是應該encode成utf-8)。 #!/usr/bin/python. # -*- coding: utf-8 -*-. s = u'中文'. s.decode('utf- ...
確定! 回上一頁