这个错误的原因是python2和3两个版本在print的用法上不同!
举例如下:
在python2.X中,使用print my_data.shape
在python3.X中,使用print(my_data.shape)