pop在python中是怎么来的

更新时间:02-10 教程 由 凉堇年♀ 分享

pop在python中是怎么来的?

年轻人认真一点好不好 words=“all good things comes to those who wait." words 是字符串 ,它怎么有pop的方法? ------------------------------------ >>> a=[1,2,3,4] >>> a.pop(0) 1 >>> a [2, 3, 4] >>> a.pop(-1) 4 >>> a [2, 3] >>> 自己搞个数组 pop 几下就知道了

声明:关于《pop在python中是怎么来的》以上内容仅供参考,若您的权利被侵害,请联系13825271@qq.com
本文网址:http://www.25820.com/tutorial/14_2169859.html