词汇:each
adj. 每;各自的
相关场景
- Behind the GATES the GONDORIAN FOOT SOLDIERS are FEARFUL ... GANDALF rallies the line of BOWMEN as they wait in front of the GREAT DOORS ... their COURAGE wavering with each CRASHING B OW . . .>> 指环王3:王者归来The Lord of the Rings: The Return of the King Movie Script
- The LANTERN LIG HT throws great SHADOWS upon the SHROUDED WALLS of a wide VAULTED CHAMBER. ROW upon ROW of MARBLE TOMBS are visible in the DIM LIGHT. Upon each TOMB lies a SLEEPING FORM, carved in STONE, hands folded.>> 指环王3:王者归来The Lord of the Rings: The Return of the King Movie Script
- MINAS TIRITH is built in 7 LEVELS - each behind a CIRCULAR DEFENSIVE WALL. Each level rises - the city reaches a height of nearly 1000 FEET on its TOPMOST LEVEL.>> 指环王3:王者归来The Lord of the Rings: The Return of the King Movie Script
- PIPPIN:
- But we'11 see each other soon?>> 指环王3:王者归来The Lord of the Rings: The Return of the King Movie Script
- [Legolas and Haldir clasp each other on the shoulder.]>> 指环王2:双塔奇兵The Lord of the Rings: The Two Towers Movie Script
- ARWEN:
- [Crying and moving into her father’s embrace] Gerich meleth nîn, ada. (You have my love, father) [Elves, cloaked and carrying a lantern each, are setting off from Rivendell on their journey to the West. Elrond looks on as Arwen leaves with them.>> 指环王2:双塔奇兵The Lord of the Rings: The Two Towers Movie Script
- [She looks back at the Rohirrim and sees Aragorn on Hasufel. They hold each other’s gaze for a moment before Aragorn turns to join Théoden. Éowyn departs with the villagers in the opposite direction.] [Legolas takes aim at the distant target and fells a warg rider. He draws another arrow and kills another. Just as he reaches for a third arrow, he sees Théoden and company approaching. He quickly runs and mounts Arod with a smooth leap and joins in the fray with Gimli behind him on horseback.] WARG-RIDERS Argh!!>> 指环王2:双塔奇兵The Lord of the Rings: The Two Towers Movie Script
- ARAGORN:
- Arwen… [Arwen hushes him, resting her fingers on his lips. As her hands moves down to rest on the Evenstar pendant around Aragorn’s neck, he clasps her hand in his and they gaze into each other’s eyes.]>> 指环王2:双塔奇兵The Lord of the Rings: The Two Towers Movie Script
- [Éowyn and Gríma stare at each other intently.] ÉOWYN Your words are poison!>> 指环王2:双塔奇兵The Lord of the Rings: The Two Towers Movie Script
- LEGOLAS:
- The trees are speaking to each other.>> 指环王2:双塔奇兵The Lord of the Rings: The Two Towers Movie Script
- [Pippin and Merry quickly scramble up a tree each.]>> 指环王2:双塔奇兵The Lord of the Rings: The Two Towers Movie Script
- MERRY:
- Trees that could whisper. Talk to each other. Even move.>> 指环王2:双塔奇兵The Lord of the Rings: The Two Towers Movie Script
- ARAGORN:
- Not if we hold true to each other. We will not abandon Merry and Pippin to torment and death, not while we have strength left.>> 指环王1:护戒使者 The Lord of the Rings: The Fellowship of the Ring Movie Script
- Close on:
- Frodo's hand grasping Sam's... Frodo pulls a bedraggled and half drowned Sam into the boat. Frodo and Sam look at each other, out of breath, tears and water streaming down both their faces.>> 指环王1:护戒使者 The Lord of the Rings: The Fellowship of the Ring Movie Script
- CUT TO:
- INT. MORIA TUNNEL FORK -- NIGHT The path splits into three passages...each disappearing into dark tunnels. Gandalf pauses, frowning.>> 指环王1:护戒使者 The Lord of the Rings: The Fellowship of the Ring Movie Script
- None can escape it. You will unite...or you will fall. Each race is bound to this fate...this one doom... Frodo sits amongst a council of free-peoples of Middle earth, Elrond stands before them, addressing Gandalf, Strider, Legolas, and 20 other elves, Dwarves, and men.>> 指环王1:护戒使者 The Lord of the Rings: The Fellowship of the Ring Movie Script
- WIDE ON:
- the door creaks open...THE FOUR RINGWRAITHS silently slide into the Hobbit's room. The LOOM above each bed, raising their SHINING SWORDS ABOVE THE SLEEPING HOBBITS.>> 指环王1:护戒使者 The Lord of the Rings: The Fellowship of the Ring Movie Script
- AT THAT MOMENT:
- A FLEETING, LOW WHISPER of BLACK SPEECH emanates from the Ring. Frodo looks at Gandalf, each knowing the other has heard it.>> 指环王1:护戒使者 The Lord of the Rings: The Fellowship of the Ring Movie Script
- They look at each other a moment..then both start laughing as FRODO'S face breaks into a smile and he leaps on to the front seat of the cart.>> 指环王1:护戒使者 The Lord of the Rings: The Fellowship of the Ring Movie Script
- CONTINUED:
- GALADRIEL (V.O.) (CONT'D) For within these rings was bound the strength and will to govern each race.>> 指环王1:护戒使者 The Lord of the Rings: The Fellowship of the Ring Movie Script
- IMAGE:
- THREE RINGS, each set with a single GEM, are received by the HIGH ELVES-GALADRIEL, GIL-GALAD and CIRDAN.>> 指环王1:护戒使者 The Lord of the Rings: The Fellowship of the Ring Movie Script
- 30.define_method or method_missing:
- 如果没有找到任何方法,method_missing就会被执行;但是因为又super的原因,这里会有迷惑。def method_missing(name, *args, &block) if @hash.respond_to?(name) @hash.send(name, *args, &block) else super end end; Hash.public_instance_methods(false).each do |name| define_method(name) do |*args, &block| @hash.send(name, *args, &block) end; h.public_methods(false).sort.take(5); 实现了Hash的方法。
AuditDecorator @logger = Logger.new($stdout); private def method_messing(name, *arg, &block) @logger.info("calling '#{name}' on #{@object.inspect}"); @object.send(name, *args, &block); define_method更加适合做这个了。 mod=Module.new do object.public_methods.each do |name| define_method(name) do |*args, &block| @logger.info("") @object.send(name, *args, &block) end end end extend(mod) ; 创建了一个匿名的模块。 —— define_method恢复了内省方法。。 respond_to? and respond_to_missing?>> Effective Ruby- 21.对集合和核心类优先使用委托而非继承:
- is a,还是 has a, 委托就是有一个。。。require('forwardable'); class RaisingHash extend(Forwardable) include(Enumerable) def_delegators(@hash, :[], :[]=, :delete, :each, :keys, :values, :length, :empty?, :has_keys) end Forwardable模块让使用委托的过程变得容易。 del_delegator(@hash, :delete, :erase!)>> Effective Ruby
- 17.数组参数:
- initialize(toppings) {Array(toppings}.each do |topping| ...} 转换为Array让代码更加健康。>> Effective Ruby
- 16.传值还是引用:
- Marshal.load Marshal.dump; b.each(&:upcase!); dup 和clone方法只会进行浅拷贝。>> Effective Ruby