列表反轉(zhuǎn)——python
提問人:楊紫紅發(fā)布時間: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() ---列表反轉(zhuǎn)
繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
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() ---列表反轉(zhuǎn)
點擊加載更多評論>>