• Python-Matplotlib Questions


    Question 1:

    列中有中文

    Traceback (most recent call last):
    File "~/PycharmProjects/ltest/scripts/py_matlab.py", line 17, in <module>
    ages, weights, heights = np.loadtxt('data.csv', delimiter=',' , skiprows=0 , unpack=True)
    File "/opt/share/anaconda3/lib/python3.6/site-packages/numpy/lib/npyio.py", line 888, in loadtxt
    first_vals = split_line(first_line)
    File "/opt/share/anaconda3/lib/python3.6/site-packages/numpy/lib/npyio.py", line 864, in split_line
    line = asbytes(line)
    File "/opt/share/anaconda3/lib/python3.6/site-packages/numpy/compat/py3k.py", line 31, in asbytes
    return str(s).encode('latin1')
    UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-1: ordinal not in range(256)

    Resolve 1 :

    http://blog.csdn.net/dgatiger/article/details/50414549

  • 相关阅读:
    kvm介绍
    正式班D24
    正式班D23
    正式班D21
    正式班D20
    正式班D19
    正式班D18
    正式班D17
    正式班D16
    正式班D15
  • 原文地址:https://www.cnblogs.com/zsr0401/p/6404912.html
Copyright © 2020-2023  润新知