Python中将字典转换为有序列表、无序列表的方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sinat_38682860/article/details/89924277

阅读目录(Content)

1.转换后的列表为无序列表

2.转换后的列表为有序列表

说明:列表不可以转换为字典

1.转换后的列表为无序列表

运行结果:

2.转换后的列表为有序列表

运行结果:

猜你喜欢

转载自blog.csdn.net/sinat_38682860/article/details/89924277