vector<int>vect; vect.push_back(1); cout<<vect.back()<<endl; vect.pop_back(); cout<<vect.size()<<endl; return0; } 1. 2. 3. 4. 5. 6. 7. 8. 9. 控制台: 1 0 1. 2.