我有一个键值对形式的命令输出:
key1: value 1 key2: value 2 ...
key1: long value 1 key2: value 2 ...
key1: val 1 key2: value 2 ...
我想要的是漂亮地打印这个输出,以便“:”对齐:
key1: value 1 key2: value 2 ...
key1: long value 1 key2: value 2 ...
key1: val 1 key2: value 2 ...
谢谢