采用鸢尾花数据集 1 查看数据并拆分 import pandas as pd filename = "iris.data" # 数据读入 df = pd.read_csv(filename) print(df) # 整个数据表 print(df.head