#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http 제목[re]quiz loop안쓰고 어떻게 하는지 제발 알려주세요 ㅠ2018-10-17 23:45작성자111셀프로 알아냈어요# 함수 정의def makeTree(shape, width,rain): output = '' if rain == True: output += '/'*int(width)+"n" output += shape.center(width,'/')+"n" output += (3*shape).center(width,'/')+"n" output += (5*shape).center(width,'/')+"n" output += (7*shape).center(width,'/')+"n" output += (9*shape).center(width,'/')+"n" output += (11*shape).center(width,'/')+"n" output += (' ||| ').center(width,'/')+"n" output += (width*"=").center(width) else: output += shape.center(width)+"n" output += (3*shape).center(width)+"n" output += (5*shape).center(width)+"n" output += (7*shape).center(width)+"n" output += (9*shape).center(width)+"n" output += (11*shape).center(width)+"n" output += (3*'|').center(width)+"n" output += (width*"=").center(width) return output혹시 다른방법도 있나요.. 이런 노가다 말고 loop 안쓰는 방법.. 목록수정삭제답변글쓰기 댓글 [0] 댓글작성자(*)비밀번호(*)내용(*) 댓글 등록 더보기이전quiz loop안쓰고 어떻게 하는지 제발 알려주세요 ㅠ1112018-10-17다음dropbox에 세부강의일정1122018-10-17 Powered by MangBoard | 워드프레스 쇼핑몰 망보드