初始化测试数据 df = pd.DataFrame({'stu_name': ['Nancy', 'Tony', 'Tim', 'Jack', 'Lucy'], 'stu_age': [17, 16, 16, 21, 19]}) stu_name stu_age 0 Nancy 17 1 Tony 16 2 Tim 16 3 Jack 21 4 Lucy 19 1. 直接增加一列 df['new_column'] = '-' stu_name stu_age new_column 0 Nancy