列表反转——python
提问人:杨紫红发布时间:2020-11-20
l.remove(2)
print l #[1, 3, 1, 2, 3]
try:
l.remove(10)
except ValueError, ve:
print "there is no 10 in list"
reverse() ---列表反转
继续查找其他问题的答案?
相关视频回答
回复(0)
l.remove(2)
print l #[1, 3, 1, 2, 3]
try:
l.remove(10)
except ValueError, ve:
print "there is no 10 in list"
reverse() ---列表反转
点击加载更多评论>>