"The ducks quacked"
"a quack doctor"
以上来源于: WordNet
V-I When a duck quacks, it makes the noise that ducks typically make. (鸭子)发出嘎嘎声
There were ducks quacking on the lawn.
有鸭子在草坪上发出嘎嘎的叫着。
N-COUNT/SOUND Quack is also a noun. 嘎嘎声
Suddenly he heard a quack.
突然,他听到嘎的一声。
N-COUNT If you call someone a quack or a quack doctor, you mean that they claim to be skilled in medicine but are not. 庸医; 江湖医生 [oft N n] [表不满]
I went everywhere for treatment, tried all sorts of quacks.
我为求医走遍了每一寸土地,尝试了所有江湖医生的疗法。
ADJ Quack remedies or quack cures are medical treatments that you think are unlikely to work because they are not scientific. 江湖疗法的 [ADJ n] [表不满]
V to act in the manner of a quack 以庸医之道行医
If it walks like a duck and quacks like a duck, it must be a duck.
如果它像鸭子一样走路,像鸭子一样呱呱叫,那它一定是一只鸭子。
The second meaning is that if something walks like a duck and quacks like a duck, it's probably a duck.
第二层意思是说,如果什么东西走起来像鸭子,叫起来也像鸭子,那么它很可能就是一只鸭子。
Affectionately known as "duck typing" (i.e., if it waddles like a duck and quacks like one, then it must be a duck!), polymorphism in Ruby is just a matter of matching method names.
Ruby中的多态性被亲切地称为“duck typing”(意思是,如果它走起路来像鸭子,叫起来也像鸭子,那么它一定是鸭子!),这种多态性只是对方法名进行匹配的问题。
应用推荐