#P1770. 实现 center 函数
实现 center 函数
题目描述
实现Python中的 center(s, width, fillchar) 函数,返回一个原字符串s居中,并使用fillchar填充至长度width 的新字符串。
本题需要递交的内容
- center以及相关函数
- 以下 4 行代码
s = input()
width = int(input())
fillchar = input()
print(center(s, width, fillchar))
gua
6
*
*gua**