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