我对python中的数据结构有点困惑; (),[]和{}.我试图找出一个简单的列表,可能因为我无法识别我无法对其进行排序的数据类型.
()
[]
{}
我的清单很简单: ['Stem', 'constitute', 'Sedge', 'Eflux', 'Whim', 'Intrigue']
['Stem', 'constitute', 'Sedge', 'Eflux', 'Whim', 'Intrigue']
我的问题是这是什么类型的数据,以及如何按字母顺序对单词进行排序?
python sorting list alphabetical
alphabetical ×1
list ×1
python ×1
sorting ×1