举一反三
- $fruit="apple" echo 'this is an $fruit.'的输出结果是( ) A: this is an $fruit. B: this is an $apple. C: this is an apple. D: this is an .
- 下面创建数组的方法正确的有( )。 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
- Fruit类有Apple和Orange两个子类,Fruit fruit=new Apple(); 该语句是对象类型转换中的_______转型。
- 下列对shell变量FRUIT操作,正确的是() A: 为变量赋值:$FRUIT=apple B: 显示变量的值:fruit=apple C: 显示变量的值:echo$FRUIT D: 判断变量是否有值:[-f“$FRUIT”]
内容
- 0
以下代码的输出结果是。 d={‘fruit’:{‘apple’:4,’orange’:10}} print(d.get(‘apple’,’no’))( ) A: 4 B: no C: fruit D: orange
- 1
According to the Bible, Adam and Eve could eat any fruit in the garden, except the fruit from the _________, and the fruit from the Tree of Knowledge of Good and Evil.
- 2
下列语句执行后,di['fruit'][1]值为 。di={'fruit':['apple','banana','orange']}di['fruit'].append('watermelon')
- 3
According to whether the fruit is all developed from the ovary, the fruit can be divided into true fruit and pseudocarp. __________ are true fruits. A: Pear B: Peach C: Sweet Orange D: Strawberry
- 4
以下关于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。