我想在Python2.7中打印字符串的unicode版本。它在Python 3中运行得很好。Python 3:print(x)
strings are now utf-8 μnicoΔé!>>> x
u'strings are now utf-8 \\u03BCnico\\u0394\xc3\xa9!'>>
\xfc\xa9\xf1\xd2Mb\x80?'\xfc\xa9\xf1\xd2Mb\x80?'?尝试了'ascii',‘latin 1’,'utf-8‘。都不起作用。在Python2.7中,b'\x00\x004\x00\x08\x00\x00\x00The Delta Wavelength (nm) is currently set to 0.008.\xfc\xa9\xf1\xd2Mb\x80?'.\xfc\xa9\xf1\xd2