python 之切片的另一个使用方式
2016-06-20 21:20
519 查看
a='123456789' a1=[] a1.extend(a[0:4]) a1.extend(a[4:]) print a1 #output ['1', '2', '3', '4', '5', '6', '7', '8', '9']
相关文章推荐
- Python3标准库简介
- python-聊聊反射
- python ConfigParser、shutil、subprocess、ElementTree模块简解
- python(django)页面导出excel
- Python爬虫实践(五):Cookie
- Ubuntu caffe安装python/caffe/_caffe.cpp:1:52: fatal error: Python.h: No such file or directory
- python 模块
- python的基本语法
- Zabbix LLD监控之创建发现的Python脚本
- python大数据工作流程
- python操作Excel读写--使用xlrd
- 安装numpy和matplotlib
- Python--内建函数
- 实例讲解Python的函数闭包使用中应注意的问题
- python之面向对象(一)
- Python中的数学运算操作符使用进阶
- 初心大陆-----python宝典 第四章
- Python for循环 基础知识篇(重要)
- python sorted()用法详解
- Python中在for循环中嵌套使用if和else语句的技巧