课程
/后端开发
/Python
/初识Python
L.insert(0,L.pop())
2016-09-16
源自:初识Python 4-6
正在回答
The method pop() removes and returns last object or obj from the list.
The method insert() inserts object obj into list at offset index.
所以这句代码的意思是把L的最后一个数据放到最前边来。
秦女汀汀3843953 提问者
举报
学python入门视频教程,让你快速入门并能编写简单的Python程序
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号