angry_grina的个人空间 https://blog1.eetop.cn/?1609339 [收藏] [复制] [分享] [RSS]

日志

python 打印 list

已有 2118 次阅读| 2017-1-17 15:14 |系统分类:人工智能

python如何用print打印出list

1
list1 = ['physics''chemistry'19972000];
list2 = [1234567 ];
print ("list1[0]: ", list1[0])
print ("list2[1]: ", list2[1])



2

>>> list = [1,2,3,4,5]
>>> print list
[12345]


3
>>> for elem in list

点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 3

    粉丝
  • 0

    好友
  • 0

    获赞
  • 0

    评论
  • 404

    访问数

手机版| 小黑屋| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-5-24 17:29 , Processed in 0.104456 second(s), 6 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网