码迷,mamicode.com
首页 > 编程语言 > 详细

[python]List

时间:2016-06-05 12:27:34      阅读:177      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!