pop在python中是怎么來的?
年輕人認(rèn)真一點好不好 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] >>> 自己搞個數(shù)組 pop 幾下就知道了
pop在python中是怎么來的?
年輕人認(rèn)真一點好不好 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] >>> 自己搞個數(shù)組 pop 幾下就知道了