[에러 해결] fatal: unable to access ~ : error setting certificate file: C:\Program Files\Git\mingw64\ssl\certs\ca-bundle.crt
·
Dev/Git & GitHub
해결 방법 https://stackoverflow.com/questions/48555969/error-setting-certificate-verify-locations-github Error setting certificate verify locations - Github I am having problem accessing github repository through Git Bash. 2 days ago I was able to push/pull the repositories. Then 1) I created an account on gitlab.com 2) I generated ssh key on my lo... stackoverflow.com git이 설치되어 있는 위치를 확인하고 다음 명령어를 ..
[Python] 화면 캡쳐 라이브러리 처리 속도 비교
·
Python/모듈 & 패키지 & 라이브러리
개요 Python에서 화면을 캡쳐를 수행하는 라이브러리는 다양하게 존재합니다. 그러나 라이브러리 간 처리 속도의 차이가 있으며, 이는 프로젝트를 수행함에 있어 많은 영향을 미친다. 따라서 이 게시글에서는 라이브러리의 처리 속도를 비교하고 어떤 라이브러리가 가장 효과적인지에 대해 알아봅니다. 라이브러리 대표적으로 화면을 캡쳐할 수 있는 라이브러리는 Pillow, pyautogui, mss 가 존재합니다. (관련 라이브러리의 자세한 설명은 생략하겠습니다.) 성능 다음과 같이 화면의 일부 영역을 캡쳐하는 코드를 구현하였습니다. import cv2 import mss import time import pyautogui import numpy as np from PIL import ImageGrab x1, y1,..
[프로그래머스] / [Level 1] / [Python] 옹알이 (2)
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/133499 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(babbling): answer = 0 can = ["aya", "ye", "woo", "ma"] for idx in range(len(babbling)): can = ["aya", "ye", "woo", "ma"] previous = "" while True: for c in can: if babbling[idx][:len(c)] == c and previous != c..
[프로그래머스] / [Level 1] / [Python] 기사단원의 무기
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/136798 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def divisor(num): s = set() for i in range(1, int(num**(1/2))+1): if num % i == 0: s.add(num//i) s.add(i) return len(s) def solution(number, limit, power): answer = 0 for n in range(1, number+1): if divisor(n) > limit: ans..
[프로그래머스] / [Level 1] / [Python] 과일 장수
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/135808 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(k, m, score): answer = 0 score.sort(reverse=True) div= len(score)//m for i in range(div): answer += min(score[m*i:m*i+m]) * m return answer
[프로그래머스] / [Level 1] / [Python] 카드 뭉치
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/159994 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(cards1, cards2, goal): for g in goal: if len(cards1) > 0 and g == cards1[0]: cards1.remove(g) elif len(cards2) > 0 and g == cards2[0]: cards2.remove(g) else: return "No" else: return "Yes"
[프로그래머스] / [Level 1] / [Python] 명예의 전당 (1)
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/138477 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(k, score): answer = [] L = list() for s in score: if len(L) < k: L.append(s) elif min(L) < s: L.remove(min(L)) L.append(s) answer.append(min(L)) return answer
[프로그래머스] / [Level 1] / [Python] 추억 점수
·
Coding Test/프로그래머스
https://school.programmers.co.kr/learn/courses/30/lessons/176963 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(name, yearning, photo): answer = [] D = dict() for key, value in zip(name, yearning): D[key] = value for pt in photo: s = 0 for p in pt: if p not in D.keys(): D[p] = 0 s += D[p] answer.append(s) return answer
욱근욱
개미는 오늘도 열심히 일을하네