當前位置:成語大全網 - 新華字典 - python?pop

python?pop

words=?all?good?things?comes?to?those?who?wait."

wordspop

------------------------------------

>>>?a=[1,2,3,4]

>>>?a.pop(0)

1

>>>?a

[2,?3,?4]

>>>?a.pop(-1)

4

>>>?a

[2,?3]

>>>?

pop