decorator中文,decorator的意思,decorator翻译及用法

2025-09-06 22:37 浏览次数 5

decorator

英[ˈdekəreɪtə(r)]美[ˈdɛkəˌretɚ]

n. 装饰者;室内装潢师

decorator 英语释义

英语释义

  • someone who decorates
  • a person who specializes in designing architectural interiors and their furnishings

decorator 片语

片语

Cake Decorator糕点装饰

candle decorator蜡烛装饰工

Party Decorator性感美女布置舞会

outside decorator厂外装饰家

Home Decorator家居装饰

pastry decorator糕点装饰

interior decorator室内设计家

Function decorator函数和方法装饰漫谈

Decorator r装饰师

Method Decorator函数装饰器

decorator 例句

英汉例句

  • before i end this installment, i want to point you to a really wonderful python module called decorator written by my sometimes co-author michele simionato.

    在结束本文之前,我想为您介绍一种确实非常出色的python模块,名为decorator,它是由与我合着过一些图书的michelesimionato编写的。

  • in this rather long letter the woman said that as she was a decorator and i an architect, we might work together.

    在这封挺长的信里,那个女人说她是装潢师我是建筑师,我们没準可以合作做点什么。

  • this event is actually fired by the updatedecorators from class hsqldbrunningdecorator, which represents the 「other」 decorator defined by the plugin.

    实际上,这个事件由hsqldbrunningdecorator 类的updatedecorators 引发,那个类描述了插件定义的「其他」decorator

  • a method is abstract if it「s preceded with the decorator @abstractmethod.

    如果方法的前缀使用 @abstractmethod 修饰符(decorator),那么此方法就是一个抽象方法。

  • the decorator pattern is used by the delegatingmessagehandler class shown in listing 7.

    清单7中的 delegatingmessagehandler类使用了decorator模式。

  • every problem you can solve with a decorator you can probably solve with an interceptor but interceptors are a very un-typesafe, unnatural way of handling business logic.

    每一个你用装饰器可以解决的问题,你也可以用拦截器来解决,但拦截器是非类型安全的,处理业务逻辑的方式也不够自然。

  • readers can do something much akin to the hypothetical (non-ugly) class decorator we propose, but without encountering the inheritance and metaclass conflict issues the metaclass approach raises.

    读者可以做一些与我们假设的理想类装饰器类似的事情,但是要避免在元类方法中出现的继承及元类沖突问题。

  • presumably such a type_check() decorator would raise an exception or take some corrective action if the types are not as expected.

    如果这些类型并非如我们预期的一样,那么这种 type_check()decorator就可能会触发一个异常,或者采取一些纠正操作。

  • her demo and clear instructions help even the most clumsy cake decorator like myself to perform the task at hand confidently.

    她的演示和清楚指令帮助一些即使很笨拙的蛋糕装饰者比如说我,可以自信地完成这个即将的任务。

  • this is caused by the fact that the project is not on the list of resources affected by the decorator and so will miss the labelproviderchangedevent.

    这是因为事实上项目并不在受decorator影响的资源列表上,所以没有 labelproviderchangedevent 。

  • the strategy pattern can be used to implement operations」 variability, and the decorator pattern can be used to implement parameters「 variability.

    strategy模式可用于实现操作的可变性,decorator模式可用于实现参数的可变性。

  • listing 14. smarter use of decorator

    清单14.decorator更聪明的用法

  • the reader may be tempted to try a purely declarative (xml-only) decorator to tag projects with running hsqldb server, as shown in listing 18.

    读者可能会试图去用纯粹的说明性(纯xml)decorator来标记具有正在运行的hsqldb服务器的项目上,如清单18 所示。

  • this looks better both to write the decorator in the first place, and in its behavior-preserving metadata.

    这对于编写decorator更加有利,同时,其保留行为的元数据的也更出色了。

  • the elementwise() decorator works equally well for any function that might operate on either an individual thing or on a sequence of things (while preserving the sequence type).

    对于那些对单个事物或事物序列(此时要保留序列类型)进行操作的函数来说,elementwise()decorator 均可同样出色地发挥作用。

  • the first decorator can de defined declaratively, using just the plugin.xml manifest elements (see listing 17).

    第一个decorator只需要使用plugin.xml清单元素就可以被定义为可声明的(见清单17)。

  • their icons are shown with a decorator at the top left, as shown in figure 28.

    在它们所显示的图标的左上方有一个小的装饰物,如图28所示。

  • there are two main benefits to the decorator module.

    decorator模块有两大主要优势。

  • it is not hard, of course, to simply write a compute() function that builds in the different return types; the decorator only takes a few lines, after all.

    当然,简单地编写一个具有不同返回类型的compute()函数并不困难;毕竟decorator只需占据几行。

  • but this won」t work very well, because the first time a server is started for a given project, the decorator won't be displayed.

    但是这不会很有效,因为当为一个给定的项目第一次启动服务器时,decorator不会显示出来。

  • the decorator process either contains the task as an inline task, or it invokes the corresponding human task component.

    装饰流程或者作为内联任务包含该任务,或者调用对应的人工任务组件。

  • the decorator process pattern does not only apply to human tasks, however, it can also be applied to allow time-based versioning for any type of long-running, asynchronous service.

    然而,装饰流程模式不仅适用于人工任务,还可以应用它来对任何类型的长时间运行的异步服务进行基于时间的版本管理。

decorator 同义词

相似词

designer由设计师专门设计的;享有盛名的;赶时髦的

相关热词