python最开始这行加了
-*- coding: utf-8
并且print("你好"),是可以打印出来的。
chn_tab = ["啊","阿"]
rec = ""
for predict_label in pos:
if predict_label != blank_label and predict_label != prev_label:
rec += chn_tab[predict_label]
prev_label = predict_label
print(rec)
print("rec=", rec)
print('rec={}'.format(rec))
车牌号码
('rec=', '\xe8\xbd\xa6\xe7\x89\x8c\xe5\x8f\xb7\xe7\xa0\x81')
rec=车牌号码
搞不懂为啥我就print("rec=", rec)这样子就是输出乱码了呢?