<p style="margin: 0px 0px 14px; padding: 0px 5px 5px 0px; border: none; font-size: 14px; line-height: 1.4; font-family: Arial, sans-serif; color: #4b4b4b">안녕하세요. 초보인지라 혼자 고민만 하다가 이렇게 글을 올립니다 </p> <p style="margin: 0px 0px 14px; padding: 0px 5px 5px 0px; border: none; font-size: 14px; line-height: 1.4; font-family: Arial, sans-serif; color: #4b4b4b">음.. 그러니까 <span style="line-height: 1.4">리스트안의 값을 범위처럼 만들어보려고 하는데요.</span></p> <p style="margin: 0px 0px 14px; padding: 0px 5px 5px 0px; border: none; font-size: 14px; line-height: 1.4; font-family: Arial, sans-serif; color: #4b4b4b">쉽게 말씀드리면</p> <p style="margin: 0px 0px 14px; padding: 0px 5px 5px 0px; border: none; font-size: 14px; line-height: 1.4; font-family: Arial, sans-serif; color: #4b4b4b"><span style="line-height: 1.4">a = [1,2,3,4,10,11,12,13,21,22,23,24]</span></p> <p style="margin: 0px 0px 14px; padding: 0px 5px 5px 0px; border: none; font-size: 14px; line-height: 1.4; font-family: Arial, sans-serif; color: #4b4b4b">위처럼 a 와 같은 리스트가 있다고 할 때</p> <p style="margin: 0px 0px 14px; padding: 0px 5px 5px 0px; border: none; font-size: 14px; line-height: 1.4; font-family: Arial, sans-serif; color: #4b4b4b">b = ['1~4','10~13','21~24']</p> <p style="margin: 0px 0px 14px; padding: 0px 5px 5px 0px; border: none; font-size: 14px; line-height: 1.4; font-family: Arial, sans-serif; color: #4b4b4b">이런식으로 만들고 싶습니다.</p> <p style="margin: 0px 0px 14px; padding: 0px 5px 5px 0px; border: none; font-size: 14px; line-height: 1.4; font-family: Arial, sans-serif; color: #4b4b4b">간단한 문제인 것 같은데 어떤 식으로 코드를짜야 할지 방법이 떠오르지 않아서 이렇게 질문드립니다.</p> <p style="margin: 0px 0px 14px; padding: 0px 5px 5px 0px; border: none; font-size: 14px; line-height: 1.4; font-family: Arial, sans-serif; color: #4b4b4b">답변 부탁드립니다.</p>
댓글 분란 또는 분쟁 때문에 전체 댓글이 블라인드 처리되었습니다.