填充行

在每行开头或末尾添加指定数量的填充字符,不是把行补到固定总长度。

输入: 文本结果: 文本

文本输入

工具选项

案例

Add exactly twelve leading dots to each line. The length parameter counts added characters; it is not the target line width.

Service names

输入

api
worker
web
api

Expected answer

............api
............worker
............web
............api
位置
Start
长度
12
字符
.
A release queue

输入

v3
v1
v2
v1

Expected answer

............v3
............v1
............v2
............v1
位置
Start
长度
12
字符
.
Case-sensitive usernames

输入

Alice
alice
Bob
Alice

Expected answer

............Alice
............alice
............Bob
............Alice
位置
Start
长度
12
字符
.
A short status feed

输入

ready
busy
ready
done

Expected answer

............ready
............busy
............ready
............done
位置
Start
长度
12
字符
.
Two-word labels

输入

first step
second step
first step

Expected answer

............first step
............second step
............first step
位置
Start
长度
12
字符
.

参数

参数默认值输入与选项
位置起始位置起始位置, End
长度5数字
字符" "支持 \n、\r 和 \t 等转义序列

相关工具

实用工具

操作参考

查看原始技术文档 (English)