这是python2中的功能
但是在python3中,您将得到想要的:)。
$ python3Python 3.3.3 (default, Nov 26 2013, 13:33:18) [GCC 4.8.2] on linuxType "help", "copyright", "credits" or "license" for more information.>>> a = ['Mxc3xa3e']>>> print(a)['Mãe']>>>
或在python2中,您可以:
print '[' + ','.join("'" + str(x) + "'" for x in a) + ']'


