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