返回顶部

收藏

List items need not all have the same type.

更多
a = ['spam', 'eggs', 100, 1234]
print a

标签:Python,List

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-01-09 09:02:42List append(x) by 张宋付
  2. 2016-01-18 18:13:30test for List membership with in by 蟋蟀MM
  3. 2016-02-19 18:26:46List concatenation: speed by 司马
  4. 2016-03-05 09:58:39Assignment to slices: Replace some items by 司马
  5. 2016-08-18 12:10:14Introducing List Filtering by 大猪
  6. 2016-09-23 11:53:50Using Lists as Stacks by 蟋蟀MM
  7. 2017-03-05 16:43:50Getting a List Subset: Slicing by Solon.Ring
  8. 2015-12-12 09:56:13Built-in function len(): get the length of a list by 司马
  9. 2016-02-13 21:28:56Concatinate two lists by 西国の海妖
  10. 2016-02-24 17:37:39List: assign by slice by 西国の海妖
  11. 2016-05-29 20:10:19Append element to a list by 山药

发表评论