-1

我正在尝试像这样在 python 2.7 中编写法语字符:

plt.xlabel("Débit")

但是,我有这个错误:

ValueError: matplotlib display text must have all code points < 128 or use Unicode strings

请问有解决办法吗?

4

1 回答 1

2

该错误ValueError: matplotlib display text must have all code points < 128 or use Unicode strings告诉您使用unicode字符串,因此:

plt.xlabel(u"Débit")
于 2018-05-29T09:38:15.553 回答