전체 글 60

[python, 리스트 함수] python list 데이터 추가 및 삭제 함수

list1 = ["kim", "LEE", "PARK"] #1. 리스트 추가 방법 #1-1. 마지막 위치에 저장 : append list1.append("end") # ['kim', 'LEE', 'PARK', 'end'] #1-2. index 위치에 저장 list1.insert(0,111) # [111, 'kim', 'LEE', 'PARK', 'end'] #1-3. 리스트끼리 저장 list2 = ["teran", "protss", "zerg"] list1 = list1 + list2 # [111, 'kim', 'LEE', 'PARK', 'end', 'teran', 'protss', 'zerg'] list1.extend(["22","33"]) # [111, 'kim', 'LEE', 'PARK', 'end',..

[python, 문자열 연산] binding Query -> literal Query 변환 함수 만들기

# in_query = "Query = SELECT * FROM EMP WHERE EQP_NO = :test1, params = 567" # 바인딩 쿼리를 입력하여 비인딩 변수 위치를 검색 # 1) 바인딩 start(':') 찾기 -> 2) 바인딩 변수 end 찾기 -> 3) 끝 위치 찾아서 반환 def get_end_index(input_str, start_index) : end_list = [" ", ",", "+", "-", "/", "*", "=", "%", ">" , " 0 : bind_var = binding_list.pop(0) query_result = input_str[:start_index] + "'" + str(bind_var) + "'"+ input_str[end_index:] in..

[파이썬, QT, 에러] QT designer.exe 실행시 에러 "This application failed to start because it could not find or load the Qt platform plugin "windows"

1. 문제점 - QT를 Desinger 를 실행시 에러가 발생 - designer.exe 실행 경로 --> "anaconda3\pkgs\qt-5.9.7-vc14h73c81de_0\Library\bin" - 에러 Message "this application failed to start because no qt platform plugin windows" 2. 해결 방법 - designer.exe 실행파일 경로에 "platforms" 폴더 생성 - 생성한 "platforms" 폴더에 "qwindows.dll" 복사 (qwindows.dll 파일 경로 \anaconda3\pkgs\qt-5.9.7-vc14h73c81de_0\Library\plugins\platforms) --> \anaconda3\pkgs\q..