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 几下就知道了