rich.styled

class rich.styled.Styled(renderable, style)[源代码]

将样式应用于可呈现对象。

参数
  • renderable (RenderableType) -- 任何可渲染的。

  • style (StyleType) -- 要应用于整个可渲染对象的样式。