表达式 'apple.peach,banana,pear'.find('p') 的值为______________
1
举一反三
- 已知s="apple,banana,pear,apple",则表达式s.count('apple')的值为_______。
- (4)请将香蕉banana用工具 H—Head,T—Tail从L中取出。 L=(apple,(orange,(strawberry,(banana)),peach),pear)
- 将li=['apple','banana','pear','peach']中多个字符串用","字符进行连接,正确的语句是
- 下面创建数组的方法正确的有( )。 A: var fruit=new Array("apple","banana","orange","peach"); B: var fruit={"apple","banana","orange","peach"}; C: var fruit=["apple","banana","orange","peach"]; D: var fruit=["apple","banana","orange",123];
- 下列代码的运行结果是()fruit=('blue',1234,('apple','pear','peach','mango'))fruit[-1][1] A: apple B: pear C: peach D: mango
内容
- 0
What are the fruits of the trees in the Garden of Eden eaten by Adam and Eve? A: Pear (Pyrus spp) B: Apple (Malus domestica) C: Banana (Musa nana) D: Peach (Amygdalus persica)
- 1
某集合数据(“Banana”、“Lemon”、“Apple”、“Apple”、“Pear”、“Orange”),请删除集合中所有的“Apple”。
- 2
下列代码的运行结果是()<br/>>>>fruit=('blue',1234,('apple','pear','peach','mango'))<br/>>>>fruit[-1][2] A: peach B: apple C: mango D: pear
- 3
以下代码运行后的结果是?f = ['apple','banana','pear']print('apPle' in f)
- 4
执行下面的语句后,输出为______ var fruit= new Array("apple", "orange", " peach","banana");fruit.push("paiapple");alert(fruit.length)