怎样用 numpy中的 loadtxt 读取字符串,而非"b'10/25/2016'"这种字节码的字符串形式?

0
以下是我的代码,读入字符串的设置不应该是“dtype=str”吗,为什么会把’10/25/2016’读成
“b’10/25/2016’”这种格式?

dataArr = np.loadtxt(fname=filePath,
delimiter=’,’,
dtype=str,
skiprows=1,
usecols=tuple(0,1,2))
已邀请:

要回复问题请先登录注册