标签:
第二章
1.列表的操作 2.元组的操作
3.字符串操作 4.字典的操作
The reason why people give up so quickly is because they look at how far they still have to go, instead of how far they have come
♣列表的操作:
列表:列表用于存储数据、操作数据的最常见的一种数据类型,可以支持数据的增、删、改、查
定义列表:
1 #! /user/bin/env python 2 #_-_coding:utf-8_-_ 3 import os,sys 4 some=["cat","dog","monkey"]
操作列表:
>追加
1 #! /user/bin/env python 2 #_-_coding:utf-8_-_ 3 import os,sys 4 zoo=["cat","dog","monkey"] 5 zoo.append("donkey") 6 print(zoo)
标签:
原文地址:http://www.cnblogs.com/BernieChen/p/5724702.html