1. He works as a painter and decorator.
他的职业是油漆匠和装潢师傅。

《牛津词典》

2. Kennedy had no formal training as a decorator.
肯尼迪没有接受过油漆工的正式培训。

《柯林斯英汉双解大词典》

3. The decorator is parameterized.
decorator 都是参数化的。

youdao

4. Listing 14. Smarter use of decorator.
清单14.decorator更聪明的用法。

youdao

5. Listing 7. The classinitializer decorator.
清单7. classinitializer装饰器。

youdao

6. You define a decorator just like any other method.
定义修饰符与定义其他方法无异。

youdao

7. There are two main benefits to the decorator module.
decorator模块有两大主要优势。

youdao

8. This is a classic GoF decorator pattern design pattern.
这是典型的GoF装饰模式设计模式。

youdao

9. Figure 4 shows a class diagram for the decorator pattern.
图4显示了装饰器模式的类图。

youdao

10. InfoQ: What distinguishes a decorator from an interceptor?
InfoQ:装饰器和拦截器的区别是什么?

youdao

11. The classinitializer decorator provides a declarative solution.
classinitializer装饰器提供了一个说明性解决方案。

youdao

12. When you invoke this decorator, you wrap it around any instance.
调用这个修饰符时,需要将它封装在任意实例内部。

youdao

13. Any method called with this decorator USES only lowercase strings.
使用此修饰符调用的任何方法都将只使用小写字符串。

youdao

14. The decorator process exposes the same interface as the task it invokes.
装饰流程公开了与其调用的任务相同的接口。

youdao

15. A method is abstract if it's preceded with the decorator @abstractmethod.
如果方法的前缀使用 @abstractmethod修饰符(decorator),那么此方法就是一个抽象方法。

youdao

16. Their icons are shown with a decorator at the top left, as shown in Figure 28.
在它们所显示的图标的左上方有一个小的装饰物,如图28所示。

youdao

17. Their ICONS are shown with a decorator at the top left, as shown in Figure 28.
在它们所显示的图标的左上方有一个小的装饰物,如图28所示。

youdao

18. It is not hard to create a decorator that "enhances" a regular numerical function.
创建一个可以“增强”普通数值函数的decorator并不困难。

youdao

19. A decorator, being a Python function, can do absolutely anything other Python code can.
作为一个python函数,decorator完全可以实现其他Python代码所实现的任何功能。

youdao

20. The decorator pattern is used by the DelegatingMessageHandler class shown in Listing 7.
清单7中的DelegatingMessage handler类使用了decorator模式。

youdao

21. But I can make a decorator without adding the extra structure of a class-based approach.
但是,我在创建修饰符时可以不用添加额外的基于类的方法结构。

youdao

22. An additional image decorator is provided by AJDT to indicate which elements are affected by advice.
AJDT提供了一个额外的图片装饰来指明哪些元素受到advice的影响。

youdao

23. This looks better both to write the decorator in the first place, and in its behavior-preserving metadata.
这对于编写decorator更加有利,同时,其保留行为的元数据的也更出色了。

youdao

24. The special method default is marked as a CherryPy handler function by the @cherrypy.expose decorator.
default这个特殊方法使用 @cherrypy.expose 修饰符标记为 CherryPy处理程序函数。

youdao

25. Listing 19 shows the correct declaration for the second decorator, and Listing 20 the implementation class.
清单19显示了对第二个decorator的正确声明,清单20是实现类。

youdao

26. A comfortable spacious bathroom decoration could prove to be a challenging job for the bathroom decorator.
把浴室装饰的舒服而不拥挤,对装潢师来说是件挑战性的工作。

youdao

27. A decorator might return a function, but one that is not meaningfully associated with the undecorated function.
decorator可能会返回一个函数,但这个函数与未修饰的函数之间不存在有意义的关联。

youdao

28. However, in other cases, the decorator might combine the undecorated method behavior with some new capabilities.
然而,在其他情况下,decorator可能会将未修饰的方法与一些新功能相结合。

youdao

29. An advantage of the decorator pattern is that you can easily tack on more than one decorator to the base at a time.
装饰器模式的优点是可以轻松地同时跟踪库的多个装饰器。

youdao

30. The first decorator can DE defined declaratively, using just the plugin.xml manifest elements (see Listing 17).
第一个decorator只需要使用plugin . xml清单元素就可以被定义为可声明的(见清单17)。

youdao