 具体网址:https://www.numpy.org.cn/user/basics/io.html 此处BytesIO()参数为byte类型,而data是字符串,应该改为StringIO()。