📜  .lstrip() - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:28.360000             🧑  作者: Mango

代码示例1
Remove spaces to the left of the string:

txt = "     banana     "

x = txt.lstrip()

print("of all fruits", x, "is my favorite")