字典‘red’:41,’blue’:3和’blue’:3,‘red’:41是不一样的。
举一反三
- 以下定义枚举类型正确的是() A: enum<br/>color={red, yellow, blue}; B: enum<br/>color={“red”, “yellow”, “blue”}; C: enum<br/>color{“red”, “yellow”, “blue”} D: enum<br/>color{red=3, yellow, blue};
- 下列枚举类型的定义中,包含枚举值3的是( )。 A: enum test {RED, YELLOW, BLUE, BLACK}; B: enum test {RED, YELLOW=4, BLUE, BLACK}; C: enum test {RED=-1, YELLOW,BLUE, BLACK}; D: enum test {RED, YELLOW=6, BLUE, BLACK};
- 下列哪项是正确的线性渐变的写法?( ) A: background:linear-gradient(red,blue); B: background:linear-gradient(45deg,red,blue); C: background-image:linear-gradient(red,blue); D: background-image:linear-gradient(45deg,red,blue);
- 以下枚举类型定义正确的是______。 A: enumcolor={red,yellow,blue}; B: enumcolor{red,yellow,blue}; C: enumcolor{“red”,“yellow”,“blue”}; D: enumOdd={1,3,5,7,9};
- which one do you prefer, red one or blue one? A: blue B: red