# 归一化 from sklearn.preprocessing import MinMaxScaler mm = MinMaxScaler(feature_range=(0,1)) data = [[90,2,10,40],[60,5,15,45],[73,3,13,45]] data = mm.fit_transform(data) print(data) # 标准化 from sklearn.preprocessing import StandardScaler sta = StandardScaler() data = [[90,2,10,40],[60,5,15,45],[73,3,13,45]] data = sta.fit_transform(data) print(data)