1. Basiclogging.basicConfig(filename='./log/test.log', level= logging.DEBUG) 2. Logger - Handlerlogger = logging.getLogger("abc")logger.setLevel(logging.DEBUG)fileHandler = logging.FileHandler('./log/my.log')logger.addHandler(fileHandler) 3. formatterformatter = logging.Formatter('[%(levelname)s|%(filename)s:%(lineno)s] %(asctime)s > %(messages)s')fileHandler.setFormatter(formatter) 4. etc Handl..
맥박의 변화규칙 -> 불규칙(혈액순환 불균형) -> 중지 대처요령 1. 환자 발견시 119 신고2. 최초 목격자인 내가 심폐소생술을 한다3. 주위 사람도 같이한다. 교체는 시간차 없이 바로4. 구급차가 올 때까지 흉부압박5. 인공호흡은 하지 않아도 된다. 하면 좋다 전조증상1. 흉통(가슴 두근거림)2. 호흡곤란3. 식은땀, 현기증4. 감기 독감, 피로감 호흡이 멈추고 4분간 버틸 수 있다. 5분이 넘으면 뇌세포 손상 AED심박은 전기 자극과 관련 있음.심 정지상태에서도 전기자극을 주어 다시 뛰게 할 수 있음AED 사용 중, 환자에 손을 대면 전류가 통하므로 주의 ------------------------------------------------------------------아래는 다른 강사 비상구다..
공식 찾아보고 이해 필요 위도 경도로 거리재기 from math import sin, cos, sqrt, atan2, radiansAPI_KEY = '' def get_geocode(address): try: api_end_point = 'https://maps.googleapis.com/maps/api/geocode/json?address={}&key={}'.format(address, API_KEY) res = requests.get(api_end_point) data = json.loads(res.text) # loads method이용 latlng = data['results'][0]['geometry']['location'] return latlng['lat'], latlng['lng'] exc..
CPU 연산 : multi-core 가 관건 IO 처리 : multi-thread 처리
더 치명적인 것을 1종 오류로 본다고 하는데, 보통 '있는데 없다고 하는것'이 치명적이다 FP 가 type1, alpha 오류이고 FN 가 type2, beta 오류이다 보통 FN, type2 에러가 더 치명적이다 실제 Positive 실제 Negative 진단 Positive True Positive False Positive(1종) 진단 Negative False Negative (2종) True Negative False Positive : 1종 오류 False Negative : 2종 오류 이전에 잘못된 포스팅을 했었다.... 이제 수정함 Table of error types Null hypothesis (H0) is True False Decision About Null Hypothesis (H..