分享一个简单的面试题
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)
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)