2009å¹´04æ10æ¥ 07:37 python defaultencodingãevilãªæã >>> print '%s,%s' % (u'æ¥æ¬èª', u'abc') æ¥æ¬èª,abc >>> print '%s,%s' % ('æ¥æ¬èª', 'abc') æ¥æ¬èª,abc >>> print '%s,%s' % (u'æ¥æ¬èª', 'abc') æ¥æ¬èª,abc >>> print '%s,%s' % ('æ¥æ¬èª', u'abc') Traceback (most recent call last): File "", line 1, in UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 0: ordinal not in range(128) ã¨ãããããªã¨ã©ã¼ãåºãã ã©ãããã¦ãã³ã¼ããã¼ã¯ä»ãæå
{{#tags}}- {{label}}
{{/tags}}