python - numpy 的 loadtxt 函数读取汉字问题
PHPz
PHPz 2017-04-18 10:07:12
0
1
1670
PHPz
PHPz

学习是最好的投资!

reply all(1)
巴扎黑

Try this:

tmp=np.loadtxt(open("test.txt", encoding='utf8'), dtype=np.str, delimiter=',')

In addition, there is no need for a semicolon ";" after the Python statement

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template