参考书籍:《深度学习——基于Python语言和Tensor》
# -*-coding:gbk-*-
import numpy as np
import pandas as pd
fileData = pd.read_csv('data.csv',encoding='gbk', dtype=np.float32, header=None, converters={(3): lambda s:1.0 if s=="是" else 0.0})
wholeData = fileData.as_matrix()
rowCount = int(wholeData.size / wholeData[0].size)
print(wholeData)