下面的Ruby代码:rx = {:fox=>/^arm/, 'fox'=>[%r{AN(DO)$}, /an(do)/i]}下面哪个表达式可以求值为非空?
A: "armando" =~ rx{:fox}
B: rx[:fox][1] =~ "ARMANDO"
C: rx['fox'][1] =~ "ARMANDO"
D: "armando" =~ rx['fox', 1]
A: "armando" =~ rx{:fox}
B: rx[:fox][1] =~ "ARMANDO"
C: rx['fox'][1] =~ "ARMANDO"
D: "armando" =~ rx['fox', 1]
举一反三
- Here is a picture of Fox’s family. This is Fox’s father, Mr. Green. And this is Fox’s mother, Mrs. Green. Look at that boy. He is Fox’s brother, Katy. They are all under an orange tree. Fox looks like his mother and Katy looks like his mother, too. Fox is in No. 2 Middle School. He is twelve. His brother is fourteen. The families are Americans. What does his father do A: A worker. B: A teacher. C: I don’t know.
- fox
- 如果要删除C盘FOX子目录下的USER子目录,应该如何操作() A: 第一步:先将USER子目录下的文件删空C:\>DELC:\FOX\USER\. B: 第二步,删除USER子目录2)C:\>RDC:\FOX\USER C: 第一步:先将USER子目录下的文件删空C:\>RDC:\FOX\USER\. D: 第二步,删除USER子目录2)C:\>DEL?C:\FOX\USER
- There are many (fox) in the picture.
- It was winter. A fox was very hungry, but he didn’t worry about it. He was sure that he could find food. He saw a truck (卡车) and there was a big box full of fish in the truck. He lied down and played dead. When the driver saw the dead fox, he stopped. He put the fox into the truck and went on driving. The fox quickly ate the fish and ran away. The fox is dead.