已知列表cars=['bmw','audi','toyota','subaru'],为了得到列表['subaru',
'toyota', 'audi', 'bmw'],应该使用下面哪个方法(
)
A: cars.reverse()
B: cars.reverse(True)
C: cars.sort()
D: sorted(cars)
'toyota', 'audi', 'bmw'],应该使用下面哪个方法(
)
A: cars.reverse()
B: cars.reverse(True)
C: cars.sort()
D: sorted(cars)
举一反三
- php[br][/br]$cars=array("Volvo","BMW","Toyota");[br][/br]echo "I like " . $cars[0] ;[br][/br]?>[br][/br](5.0) A: Volvo B: BMW C: Toyota
- 下面代码的结果是var cars = ['bmw','qq','byd','glof']; cars.splice(2,0,'polo'); console.log(cars); A: ["bmw", "qq", "byd", "polo", "glof"] B: ["bmw", "qq", "polo", "glof"] C: ["bmw", "qq", "polo", "byd", "glof"] D: 以上都不对
- When 3) with Toyota’s cars
- The use of BMW cars and Nokia ...of ___________ .
- 下列程序的执行结果是:<?php$cars=array("Volvo","BMW","Toyota");echo "I like " . $cars[0] . ", " . $cars[1] . " and " . $cars[2] . ".";?>