要跳过Python中的第一个元素,只需编写
for car in cars[1:]:
或者跳过最后一个
for car in cars[:-1]:
站长微信:xiaomao0055
站长QQ:14496453