主页
Python
Python String center() 方法
demo_ref_string_center
运行 ❯
×
更改方向
保存代码
更改主题
txt = "banana" x = txt.center(20) print(x)
banana