Python문자열lstrip
strip

lstrip문자열

rstrip

왼쪽 공백을 제거합니다.

문법

str.lstrip(chars?)

예제

아래 값을 입력하면 예제에 즉시 반영됩니다.

print
lstrip
text = "  hello world  "
print(text.lstrip())  # "hello world  "