摘要:
1.Given the list [14, 12, 13, 11], express how we would obtain the Listwith these elements in descending order.def list =[14,12,13,11]print list.sort().reverse() // output: [14,13,12,11]如果使用Ruby也是类似的list=[14,12,13,11]#output:[14,13,12,11]printlist.sort().reverse()2.Given the list [1,2,[3,4]], detern 阅读全文
posted @ 2012-09-22 09:27
卜海清
阅读(289)
评论(0)
推荐(0)

浙公网安备 33010602011771号