You need to strip off the trailing ';'
from the lines.
A possible workaround if you know you have 5 columns is:
np.loadtxt('test.csv', delimiter=';', usecols=range(5))
Or, use genfromtext
instead which handles missing values
np.genfromtxt('test.csv', delimiter=';')[:,:-1]
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…