案例
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
apiExpected answer
............api
............worker
............web
............api- 位置
Start- 长度
12- 字符
.
A release queue
输入
v3
v1
v2
v1Expected answer
............v3
............v1
............v2
............v1- 位置
Start- 长度
12- 字符
.
Case-sensitive usernames
输入
Alice
alice
Bob
AliceExpected answer
............Alice
............alice
............Bob
............Alice- 位置
Start- 长度
12- 字符
.
A short status feed
输入
ready
busy
ready
doneExpected answer
............ready
............busy
............ready
............done- 位置
Start- 长度
12- 字符
.
Two-word labels
输入
first step
second step
first stepExpected answer
............first step
............second step
............first step- 位置
Start- 长度
12- 字符
.
参数
| 参数 | 默认值 | 输入与选项 |
|---|---|---|
| 位置 | 起始位置 | 起始位置, End |
| 长度 | 5 | 数字 |
| 字符 | " " | 支持 \n、\r 和 \t 等转义序列 |