A: this is an $fruit.
B: this is an $apple.
C: this is an apple.
D: this is an .
举一反三
- 以下代码的输出结果是。 d={‘fruit’:{‘apple’:4,’orange’:10}} print(d.get(‘apple’,’no’))( ) A: 4 B: no C: fruit D: orange
- According to its fruit structure characteristic, an apple should be called a false fruit. [img=1153x427]1803b8138cdda1c.jpg[/img]
- 下列对shell变量FRUIT操作,正确的是() A: 为变量赋值:$FRUIT=apple B: 显示变量的值:fruit=apple C: 显示变量的值:echo$FRUIT D: 判断变量是否有值:[-f“$FRUIT”]
- 下面创建数组的方法正确的有( )。 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];
- The apple trees fruit
内容
- 0
Fruit类有Apple和Orange两个子类,Fruit fruit=new Apple(); 该语句是对象类型转换中的_______转型。
- 1
关于字符串常用方法的使用,有代码如下:s='Apple is my favorite fruit.'print(s.split(' '))经分析,其输出结果是( )。 A: Apple is my favorite fruit. B: 系统报错 C: ['Apple', 'is', 'my', 'favorite', 'fruit.'] D: Appleismyfavoritefruit.
- 2
下列对shell变量FRUIT操作,正确的是: C 。 A: 为变量赋值:$FRUIT=apple B: 显示变量的值:fruit=apple C: 显示变量的值:echo F R U I D: 判 断 变 量 是 否 有 值 : [ − f “ FRUIT D 判断变量是否有值:[ -f “FRUITD判断变量是否有值:[−f“FRUIT” ]
- 3
以下关于Python自带数据结构的运算结果中正确的是哪一项? A: l = [1, 2, 3, 4, 5]; del l[2:4]; 则运算之后l为[1, 2, 3]。 B: l = [2, 1, 3, 5, 4]; l.remove(3); l.sort(); 则运算之后l为[1, 2, 4, 5]。 C: basket = ['apple', 'banana', 'apple', 'orange'] ; fruit = set(basket); len(fruit) 的运算结果是4。 D: basket = ['apple', 'banana', 'apple', 'orange'] ; fruit = set(basket); fruit2 = set(['apple', 'melo']); len(fruit | fruit2) 的结果是5。
- 4
程序运行结果为(______ )fruit = ['apple', 'banana', 'mango', 0]for item in fruit: if item == 0: fruit[item] = 'watermelon' elif item == 'mango': fruit[2] = 'pear'print(fruit)