会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
平安自在
博客园
新随笔
管理
2013年5月15日
Python List(列表)使用示例
摘要: shoplist = ['apple', 'mango', 'carrot', 'banana'] #定义一个列表print 'I have', len(shoplist),'items to purchase' #计算列表长度print 'These items are:', #遍历列表for item in shoplist: print item, print '\nI also to buy rice'shoplist.append('rice'
阅读全文
posted @ 2013-05-15 09:23 hnrainll
阅读(712)
评论(0)
推荐(0)
编辑
公告