python+list的几个操作
2016-04-03 13:02
411 查看
生成一个二维的list
列表元素操作
字符串转列表
lists = [[] for i in range(3)]
列表元素操作
list_int = ['S', 'A', 'B'] list_int.pop()#删除最后一个元素 list_int.pop(0)#删除列表中第一个元素
字符串转列表
string='abc' list_str=list(string)
相关文章推荐
- python爬虫学习--pixiv爬虫(2)--国际排行榜的图片爬取
- Python 编程风格
- ImportError with IronPython in C#
- 在C#环境中动态调用IronPython脚本(二)
- python笔记(持续更新)
- 在C#环境中动态调用IronPython脚本(一)
- Python Discuz 7.2 faq.php 注入漏洞全自动利用工具
- NumPy学习笔记
- NumPy学习笔记
- python导出函数方法
- leetcode @python 130. Surrounded Regions
- 自动化测试常用断言的使用方法(python)
- leetcode @python 129. Sum Root to Leaf Numbers
- leetcode @python 128. Longest Consecutive Sequence
- leetcode @python 127. Word Ladder
- python中的operator库
- 如何配置OPENCV的Python接口
- Python基础之数据类型
- java和python对比
- python的注释