首页 > 编程语言 > 详细

[python]List

时间:2016-06-05 12:26:20      阅读:228      评论:0      收藏:0      [点我收藏+]

List is similar to array but beyond. A list can contial various types of data.

list=["string", 1223, 2.718]

to refer an element from a list, we can use

list[0]  python alwsys start counting with 0

list[-1]

to get information about the list

len(list)

 

[python]List

原文:http://www.cnblogs.com/lmliu/p/5560326.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!