편집 기록

편집 기록
  • 프로필 nowp님의 편집
    날짜2019.06.10

    if중첩문 정리


    def followtheradio():
        if var.get()==1: #원
            if var2.get()==1:#컬
                if var3.get()==1: #크기제한
                    if var4.get()==1: #테두리
                        None # [c1]
                    else:
                        None # [c2]
                else:
                    if var4.get()==1:
                        None # [c3]
                    else:
                        None # [c4]                                             
            else:
                if var3.get()==1:
                    if var4.get()==1:
                        None # [c5]
                    else:
                        None # [c6]                        
                else:
                    if var4.get()==1:
                        None # [c7]
                    else:
                        None # [c8]
    
    

    [c1~c8]에는 다른 실행할 것이 들어갑니다, 중첩문 공부하는데 어려워서 질문해요. 위의 코드 좀 더 깔끔하게 정리해주실 분 계신가여!

  • 프로필 알 수 없는 사용자님의 편집
    날짜2019.06.09

    if중첩문 정리


    def followtheradio():
        if var.get()==1: #원
            if var2.get()==1:#컬
                if var3.get()==1: #크기제한
                    if var4.get()==1: #테두리
                        None # [c1]
                    else:
                        None # [c2]
                else:
                    if var4.get()==1:
                        None # [c3]
                    else:
                        None # [c4]                                             
            else:
                if var3.get()==1:
                    if var4.get()==1:
                        None # [c5]
                    else:
                        None # [c6]                        
                else:
                    if var4.get()==1:
                        None # [c7]
                    else:
                        None # [c8]
    
    

    [c1~c8]에는 다른 실행할 것이 들어갑니다~ 중첩문 공부하는데ㅠㅠ어려워서 질문해요ㅕㅠㅠ 위의 코드 좀 더 깔끔하게 정리해주실 분 계신가여!