본문 바로가기

Web_Application

(94)
python - 예외가 발생했습니다. AttributeErrormodule 'cv2.cv2' has no attribute 'xfeatures2d' opencv 컴파일 중 발생하는 예외입니다. opencv-contrib-python 라이브러리가 필요하니 설치해주세요. pip install opencv-contrib-python
python 텍스트 한문을 한글로 변환하기 https://github.com/suminb/hanja python 3.x에서 설치하기 1. Download Zip 다운로드 후 압축 풀기 2. 관리자 권한으로 명령프롬프트 실행 3. setup.py 가 있는 폴더로 이동 - cd C:\source\test\pylib\hanja-develop\hanja-develop pip install . 실행 의존성 오류가 발생하면 패키지 설치하기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 ..
ERROR: should be excluded because its source file '' is under Windows System File Protection. (When Building MSI) Target File > right click > Properties > Execlude = true
The SSL connection could not be established, see inner exception. The remote certificate is invalid according to the validation procedure. .NET Core Console Application 개발 시 HTTPS 접근을 시도할 때 나타나는 예외 메세지 입니다. static void Main(string[] args) { ServicePointManager.ServerCertificateValidationCallback +=(sender, cert, chain, sslPolicyErrors) => true; //추가 string result = getData(); //구현 Console.WriteLine("{0}", result); } 출처 : https://stackoverflow.com/questions/2675133/c-sharp-ignore-certificate-errors
visual studio code configured debug type 'python' is not supported 현상 1. 잘 쓰던 python debuger 가 갑자기 에러를 띄운다. 2. Python Extention 이 설치되어 있는데 위와 같은 메세지가 보인다. 3. lauch.json 에서 type : python 이 지원하지 않는다고 표시된다. 방법 1. Extention Tab 에 가서 python 이라고 검색하고 2. Python - ms-python.python 을 제거하고 다시 인스톨한다.
python md5 사용법 import hashlib for index in range(100): # hash = hashlib.md5(index).hexdigest() # hash = hashlib.md5("{0}".format(index)).hexdigest() hash = hashlib.md5(("{0}".format(index)).encode("utf-8")).hexdigest() print("{0} = {1}".format(index, hash)) pyfiddle link : https://pyfiddle.io/fiddle/ee1edabd-f51b-44b0-a7ff-7b833d467b4f/?m=Saved%20fiddle
Scaffold-DbContext - Build failed, errors 개발 환경 win 10, vs 2019, .net core 2.1 , mysql 8.0 패키지관리자콘솔 실행 PM> Scaffold-DbContext "Server={{host}};Port={{port}};Database={{db_name}};Uid={{user_id}};Pwd={{password}};" MySql.Data.EntityFrameworkCore -OutputDir Models 에러메세지 Build failed. > 접속정보는 정상이라는 가정하에 프로젝트를 처음 생성하고 빌드 과정을 거치지 않고 바로 실행했을때 발생합니다. Models 폴더에 db_name 의 The following file(s) already exist in directory {{source_path}}\Models: {..
simple string format print('%s %s %s' % ('a','b','c')) # a,b,c print('%s %d %s' % ('a',1,'c')) # a 1 c print('%s %f %s' % ('a',1.111,'c')) # a 1.111000 c print('{0} {1} {2}'.format('a','b','c')) # a b c print('{0} {1} {2}'.format('a',1,'c')) # a 1 c print('{0} {1} {2}'.format('a',1.111,'c')) # a 1.111 c pyfiddle : https://pyfiddle.io/fiddle/59d69f15-7723-4e55-8244-c4a8078dd322/?i=true more format : https://pyformat...