主页
Python
Python String rstrip() 方法
demo_ref_string_rstrip
运行 ❯
×
更改方向
保存代码
更改主题
txt = " banana " x = txt.rstrip() print("of all fruits", x, "is my favorite")
of all fruits banana is my favorite