[Python] python创建列表并给列表赋初始值演示代码 →→→→→进入此内容的聊天室

来自 , 2019-04-06, 写在 Python, 查看 118 次.
URL http://www.code666.cn/view/edb947f2
  1. aList = [123, 'abc', 4.56, ['inner', 'list'], 7-9j]
  2. anotherList = [None, 'something to see here']
  3. print aList
  4. print anotherList
  5. aListThatStartedEmpty = []
  6. print aListThatStartedEmpty
  7. print list('foo')
  8.  
  9. #//python/4500

回复 "python创建列表并给列表赋初始值演示代码"

这儿你可以回复上面这条便签

captcha