分享一个简单的面试题

a=[4,6,8] b=[2,9,1,4] 将两个数组结合,并从小到大排序

https://www.runoob.com/python/att-list-sort.html

1 a=[4,6,8]
2 b=[2,9,1,4]
3 c=[]
4 c=a+b
5 c.sort();
6 print("List : ", c)

 

posted @ 2020-12-23 10:32  Tthess  阅读(55)  评论(0编辑  收藏  举报