python 문자열 trim, 앞뒤 공백 제거

1
2
output = '      안녕      '.strip()
print(output) # 안녕

python 문자열 trim, 앞뒤 공백 제거

https://chinsun9.github.io/2021/07/15/python-str-strip/

Author

chinsung

Posted on

2021-07-15

Updated on

2021-07-17

Licensed under

댓글