항상 성실한 답변에 감사드립니다. 오늘도 난관에 봉착했습니다 ㅠㅠ 1. 엑셀도 win32 로 불러들여야 해서, 아래와 같이 하려면 중복(순환로딩)에 대한 문구가 뜨던데요. 좋은 방법이 있을까요? from pyhwpx import Hwp import win32com.client as win32 2. textbox (글상자)를 하나 열고 글상자에 텍스트를 넣고 빠져나오려면 어떻게 해야할까요?
안녕하세요 강사님, 백준 11726번 관련 질문 드립니다. 노션에 나온 정답지는 # input N = int(input()) # solve dp = [0] * (N + 2) dp[1] = 1 dp[2] = 2 for n in range(3, N + 1): dp[n] = (dp[n-1] + dp[n-2]) % 10007 print(dp[N]) 으로 되어있습니다. 그런데 강의에서는 dp = [0] * (N + 2) 부분이 dp = [0] * (N + 1) 로 되어있습니다. 백준에 dp = [0] * (N + 1) 로 제출하면 런타임 에러가 발생하는데, 그 이유를 알 수 있을까요? dp[N]까지 접근하는건데, 0번째 인덱스를 고려한 N+1이아닌, N+2는 왜 필요한지 모르겠습니다. (강의나 노션에 추가 설명이 보이지 않아서 여쭤봅니다) 감사합니다.
현재 빌드 진행 중 이러한 오류가 발생합니다. 7 issues were found when checking AAR metadata: 1. Dependency 'androidx.appcompat:appcompat-resources:1.7.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Recommended action: Update this project to use a newer compileSdk of at least 34, for example 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 2. Dependency 'androidx.appcompat:appcompat:1.7.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Recommended action: Update this project to use a newer compileSdk of at least 34, for example 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 3. Dependency 'androidx.activity:activity:1.8.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Recommended action: Update this project to use a newer compileSdk of at least 34, for example 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 4. Dependency 'androidx.core:core-ktx:1.13.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Recommended action: Update this project to use a newer compileSdk of at least 34, for example 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 5. Dependency 'androidx.transition:transition:1.5.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Recommended action: Update this project to use a newer compileSdk of at least 34, for example 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 6. Dependency 'androidx.core:core:1.13.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Recommended action: Update this project to use a newer compileSdk of at least 34, for example 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 7. Dependency 'androidx.annotation:annotation-experimental:1.4.0' requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs. :app is currently compiled against android-33. Recommended action: Update this project to use a newer compileSdk of at least 34, for example 34. Note that updating a library or application's compileSdk (which allows newer APIs to be used) can be done separately from updating targetSdk (which opts the app in to new runtime behavior) and minSdk (which determines which devices the app can be installed on). 이후 해결을 위해 build.gradle.kts 파일에서 compile, target Sdk를 모두 34로 올리고, dependencies { implementation("androidx.core:core-ktx:1.9.0") implementation("androidx.appcompat:appcompat:1.7.0") implementation("com.google.android.material:material:1.12.0") implementation("androidx.constraintlayout:constraintlayout:2.1.4") implementation("androidx.databinding:databinding-runtime:8.7.0") testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test.ext:junit:1.2.1") androidTestImplementation("androidx.test.espresso:espresso-core:3.6.1") } dependencies에서 core-ktx 버전을 1.9.0에서 1.13.1로 올렸습니다. 이후 빌드에서 오류가 발생하지 않는 걸 확인했습니다. 하지만 이후에도 run app이 불가능해서 앱을 확인할 수 없었습니다. 혹시 sdk 버전 올라가면서 변경할 점이 추가로 있다면 알려주실 수 있나요..
함수와 재귀함수 (v2) 59:06에서 arr[0]이 어떻게 리턴이 되는지 궁금합니다. arr[0]이 max 값으로 리턴 되는건가요? return arr[0]값이 위에 int maxval로 리턴이 돼서 밑에 있는 maxVal(arr, size-1) 함수에 값이 대입이 돼서 max에 arr[0]이 대입된건가요?
뭔가 빠져서... 이게 맞겠죠..? a = [1, 2, 3] b = a c = [1, 2, 3, 4] print(a is b) # 출력: True print(a is c) # 출력: False print(b is not a) # 출력 : False print(b is not c) # 출력 : True print(a == c) # 출력: False print(a != c) # True print(a != b) # False print(c != b) # True 같다 : is 와 is not 과의 차이 ==, != != 값이 다른지 판단 (내부) == 값이 같은지 is = 객체가 같은지 is not = 객체가 다른지 # 예제 def add(a, b, c): return a + b + c nums = [1, 2, 3] print(add(*nums)) # 출력: 6 kwargs = {'a': 1, 'b': 2, 'c': 3} print(add(**kwargs)) # 출력: 6 print(add(*kwargs)) # 출력: abc 딕셔너리에서는 문자열도 언팩킹해서 값으로 보내는 느낌이 있네요 . 키 값이라서 안될 줄 알았는데. (이게되네..?)
2024년 10월 현재 제 pc에 설치된 버전은 requests 2.32.3, beautifulsoup 4.12.3, bs4 0.0.2 , python 3.1.3 인데, soup = BeautifulSoup(html, "html5lib") 코드는 오류발생 합니다. "html5lib"대신 "html.parser" 사용하면 정상 작동합니다. soup = BeautifulSoup(html, "html.parser")
안녕하세요, 작업형 1, 2를 너무 쉽게 생각했다 작년 12월 시험에 아쉽게 떨어졌습니다.. (선생님 강의 덕에 작업형 3은 만점 받았습니다..감사합니다) 이번 11.30. 시험에는 반드시 합격하겠다는 마음으로 다시 공부하려고 하는데, 수강기간이 10.17.에 종료됨을 깨닫고...혹시 수강 연장이 가능한지 문의 남깁니다.!! 이번에는 선생님 강의 열심히 들어서 꼭 합격하겠습니다!! 메일 주소는 whdlstla@gmail.com 입니다!