fork download
  1. s = u"abc你好def啊"
  2. n = [s[i:i+3] for i in xrange(0, len(s), 3)]
  3. print('{0!r}'.format(n))
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
[u'abc', u'\xe4\xbd\xa0', u'\xe5\xa5\xbd', u'def', u'\xe5\x95\x8a']