代码之家  ›  专栏  ›  技术社区  ›  Vhaerun

在公共lisp中居中文本

  •  7
  • Vhaerun  · 技术社区  · 16 年前

    1 回复  |  直到 14 年前
        1
  •  11
  •   Andru Luvisi    16 年前

    使用~<格式化指令。这将返回以70列为中心的“hello there”。

    (format nil "~70:@<~A~>" "hello there")