列表反轉(zhuǎn)——python
提問人:楊紫紅發(fā)布時(shí)間: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)
點(diǎn)擊加載更多評(píng)論>>