为什么df[循环变量]=值,df里就只有一列,不随着循环增加,df是dataframe

为什么df[循环变量]=值,df里就只有一列,不随着循环增加,df是dataframe

df放到循环外面试试,否则每次都是生产新的df