()
return train_data
获取数据，返回值类型为 ndarray
获取数据，返回值类型为 ndarray
获取数据，返回值类型为 ndarray
def getData():
        '''
        获取数据，返回值类型为 ndarray
        '''
        train_data = pd.read_csv('iris.csv').to_numpy()

        return train_data
def getData ( ) : train_data = pd . read_csv ( 'iris.csv' ) . to_numpy ( ) return train_data