开发者社区 问答 正文

python集合转列表的代码是什么?

python集合转列表的代码是什么?

展开
收起
游客qzzytmszf3zhq 2021-11-04 20:24:06 476 分享 版权
1 条回答
写回答
取消 提交回答
  • s={1,2L,3.1,1,"hello",1+4j} print s print type(s) li1=list(s) print li1 print type(li1)

    2021-11-04 20:24:21
    赞同 展开评论