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

제목string method에 관한 질문입니다2020-05-04 04:29
작성자

hint='_'*5

print(hint.replace(hint[0],'o')) 

코드를 이렇게 짤 경우에 o____ 이 아니라 ooooo가 나오는데 이유가 뭔지 알 수 있을까요? 

 그리고 항상 답변해주시는 조교, 멘토, 교수님들 감사합니다!!


댓글
이전[re]출력 질문2020-05-04
다음[re]string method에 관한 질문입니다2020-05-04