以下选项,输出结果为True的是( )。
A: "BC" in "ABCD"
B: >>> "red" in {"apple":"red","lemon":"yellow","grape":"purple"}
C: >>> "apple":"red" in {"apple":"red","lemon":"yellow","grape":"purple"}
D: [2,3] in [1,2,3,4]
A: "BC" in "ABCD"
B: >>> "red" in {"apple":"red","lemon":"yellow","grape":"purple"}
C: >>> "apple":"red" in {"apple":"red","lemon":"yellow","grape":"purple"}
D: [2,3] in [1,2,3,4]
举一反三
- 对于字符串和for循环的知识点,现设置代码如下:[img=413x259]17da6f9eb7df542.png[/img]请分析这段代码的输出结果为( )。 A: {'grape': '1',apple': '2','watermelon': '3','lemon': '4'} B: {grape:1,apple:2,watermelon:3,lemon:4} C: ['grape';'1', 'apple':12', 'watermelon';'3','lemon';'4'] D: [grape:1,apple:2,watermelon:3,lemon:4]
- 字典fruit={'apple':'red','peach':'pink','lemon':'orange'},fruit['lemon']的结果是( )。 A: 'pink' B: 'red' C: 'orange' D: Orange
- Inthecaseof_____Notices,thepersonsconcernedarewantedbynationaljurisdictionsforprosecutionortoserveasentencebasedonanarrestwarrantorcourtdecision. A: Black B: Purple C: Red D: Yellow
- 梨的英文单词是() A: Pear B: Apple C: Grape D: Lemon
- What is the dominant color in the Forbidden City? A: Yellow B: Red C: Cyan D: Purple