Python学习
来源:互联网 发布:camera软件下载 编辑:程序博客网 时间:2024/06/09 17:10
Python——List(1)
Python学习这里只加上例子
cast=["a",1,"b",2,"c",3,"d",4]print len(cast)cast.append("e")print len(cast)print castcast.extend(["f","g"])print castcast.remove("a")print castcast.insert(0,"z")print castfor i in cast:print(i)cnt=0#attention the originwhile cnt<len(cast):#attention the operator ':'!!!print(cast[cnt])cnt = cnt+1#python don't have the check for the check-error#so ,the check for cast[100] will get a mistake
1 0
- 【Python学习】Python 关键字
- Python学习----Python基础
- 【python】:python学习笔记
- Python:Python学习总结
- Python学习-Python数据类型
- Python学习
- 学习python
- python学习
- 学习Python
- python学习
- python学习
- python学习
- python 学习
- 学习python
- Python学习
- Python 学习
- python学习
- Python学习
- sql 语句
- Sofia-SIP辅助文档九 - Sofia SIP用户代理库 - "ipt" - 工具模块
- android jni中的java调c的两种方法
- Android项目使用python分语言批量打包apk渠道包
- Sofia-SIP辅助文档十 - Sofia SIP用户代理库 - "nua" - 高层用户代理模块
- Python学习
- 1007. Maximum Subsequence Sum (25)
- http请求资源下载还是打开显示
- 给VMWare虚拟机瘦身
- Sofia-SIP辅助文档十一 - Sofia SIP用户代理库 - "nea" - SIP事件模块
- swift-5类型别名和布尔值
- 线程模型的综述
- Linux 安装PIL库
- Sofia-SIP辅助文档十二 - Sofia SIP用户代理库 - "iptsec" - 认证模块