#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목strip이 적용이 안됩니다.2019-11-19 22:18
작성자

print(YoYmatrix[5][9:])

print(type(YoYmatrix[5][9:]))


qwer=YoYmatrix[5][9:]


print(qwer)


print(qwer.strip(','))

-----------------------------------

12,340
<class 'str'>
12,340
12,340



라고 나오는데요

이렇게치면

print(qwer.strip('12'))

--------------------

,340




라고 나옵니다.

strip이 구두점만 제거가 안되는데 대체 왜이런건가요??
댓글
이전중간2019-11-27
다음[월, 수 11:00 수업] Quiz3 점수 및 채점기준 공지 2019-11-18