students = [('Alice', 85), ('Bob', 90), ('Charlie', 78)]
sorted_students = sorted(students, key=lambda x: x[1])
print(sorted_students)
# 按成绩排序: [('Charlie', 78), ('Alice', 85), ('Bob', 90)]