vector& prices for(int price: prices) for循环的一个书写方式, 后面的prices 是个容器、数组之类的东西。 for循环 price依次取里面每一个值,运行for语句块中语句。