python中pop()函数的用法
1、启动:开始——python,进入python首页。
2、创建新文件:file——new.。或者control+N.。
3、创建列表:list1 = ['Google', 'baidu', 'Taobao'] 。
4、使用pop()函数:list_pop=list1.pop(1)。
5、检查函数使用过后的效果:print ("删除的项为 :&孥恶膈茯quot;, list_pop)print ("列表现在为 : ", list1)。
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:71
阅读量:36
阅读量:22
阅读量:24
阅读量:37