此函数调用 numpy.char.decode()解码给定的字符串。
import numpy as np a=np.char.encode('hello', 'cp500') print a print np.char.decode(a,'cp500')
其输出如下-
����� hello
参考链接
https://www.learnfk.com/numpy/numpy-char-decode.html
标签:char,numpy,cp500,无涯,decode,print,np,NumPy From: https://blog.51cto.com/u_14033984/7917290