그냥 지금 너무 어이가 없어서 저장용 A Class에서 list_a와 함께 B class 인스턴스를 생성함 B class 내부에서 list_new = list_a 함 그리고 B class thread에서 A Class로 signal signal 받았을 때 list_a의 첫 번째 원소를 삭제하는데 list_new도 영향을 받음 그래서 B Class 내부에서 list_new = list_a.copy()로 해야함 ㅋㅋ c만 하다 보니 이 상황 자체가 어이없음ㅋㅋ self.thread_take_out_amount = ThreadTakeOutAmount( self.found_compass, self.user_input_amount, ) def remove_coordinate(self, index): if inde..
celery result_backend를 maria로 사용하려고 설정 후 task 실행 중에 에러남 대부분 pip install mysqlclient 설치하면 끝나는 것 같은데 pkg-config 어쩌구 함 pip install mysqlclient Collecting mysqlclient Using cached mysqlclient-2.2.0.tar.gz (89 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ ex..
뭐 쉘 바꿔서 해보려고 해도 bad cpu 어쩌구 해서 포기하고 다른 pc에서 할까 했는데 특정 버전으로 설치하니까 당장 실행하는데는 큰 문제는 없는듯? pip uninstall greenlet pip install greenlet==1.1.3 pip uninstall gevent pip install gevent==22.8.0 https://blog.csdn.net/qq_26545503/article/details/128355046 python gevent 解决 (mach-o file, but is an incompatible architecture (have ‘x86_64‘, need ‘arm64‘))问题_kainx的博 报错 在执行import gevent时出现下面的错误 ImportError: dlop..

메시지 보내는걸 일반 소켓 대신 메시지 브로커로 깔끔하게 쓰려고 찾다 보니 redis, kafka, rabbitMQ 정도 나옴 kafka 쓰기는 너무 큰 것 같고, redis보다는 rabbitMQ가 나아 보여서 rabbitMQ로 - 근데 일단 내가 전달하려는 json 메시지와 메시지 브로커간의 메시지의 의미가 다르긴 한데 그냥 쓰려면 쓸 수는 있을 듯 pika로 rabbitMQ에 연결해서 메시지 넣고 사용하면서 좀 더 찾아보니 일반적으로 클라이언트는 rabbitMQ와 같은 브로커에 직접 연결하지 않는다고 함 api 등을 통해 처리를 한다고 해서 fastapi 써야겠다~ 생각하고 찾다 보니 또 fastapi와 같은 서버에서 직접 메시지를 넣거나 꺼내지 않고 celery와 같은 브로커를 써서 작업을 처리한다..
https://build-system.fman.io/qt-designer-download Qt Designer Download for Windows and Mac Install Qt Designer on Windows or Mac. Only 40MB! build-system.fman.io official 은 아닌것 같음 자기 OS 맞게 다운로드 및 설치 아래는 디자이너로 생성한 ui파일 불러와 사용하는 기본 코드 import sys from PyQt5.QtWidgets import * from PyQt5 import uic #Widget이면 arg QWidget으로 class MainWindow(QMainWindow, form_class): def __init__(self): super().__init_..
크롤링 하던중 시간 format을 보고 경악하여 찾아 봄 timeStr = 'Jun 10, 2020 4:09:43 PM' Thistime = datetime.strptime(timeStr, '%b %d, %Y %I:%M:%S %p') print(Thistime) #2020-06-10 16:09:43 https://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior 8.1. datetime — Basic date and time types — Python 2.7.18 documentation 8.1. datetime — Basic date and time types The datetime module supplies classes ..

python N = int(input()) equip = list() res = list() for i in range(N): hp, mp, _str, _def, *equip = map(int, input().split()) res = [hp + equip[0], mp + equip[1], _str + equip[2], _def + equip[3]] if res[0] < 1: res[0] = 1 if res[1] < 1: res[1] = 1 if res[2] < 0: res[2] = 0 power = 1 * res[0] + 5 * res[1] + 2 * res[2] + 2 * res[3] print(power) https://www.acmicpc.net/problem/12790 12790번: Mini F..

pypy3 N = int(input()) arr = list() for i in range(N): arr.append(int(input())) for n in sorted(dict.fromkeys(arr)): print(n) https://www.acmicpc.net/problem/2751 2751번: 수 정렬하기 2 첫째 줄에 수의 개수 N(1 ≤ N ≤ 1,000,000)이 주어진다. 둘째 줄부터 N개의 줄에는 숫자가 주어진다. 이 수는 절댓값이 1,000,000보다 작거나 같은 정수이다. 수는 중복되지 않는다. www.acmicpc.net

#style관련 지워도 됨, 다른 그룹웨어 안들어가봐서 되는지 모름ㅎ 0. 실행 시 tray에 등록 -트레이 우클릭 등록, 새로고침, 끝내기 1. selenium으로 gw login -bs로 로그인 못하겠음 2. driver cookie -> requests.Session에 넘겨 줌 3. Session으로 당일기준 범위 안의 일 별 일정 가져 옴(global day_range = 15) 4. DB로 넣어 줌 - aws dynamo db사용(1. free tier무료 2. 간단 함) - 넣어주면서 key값으로 중복 검사 함, schedule_day_idx 중복 없었음 5. 없다면 새 일정으로 판단 > 윈도우 알림 줌(카톡으로 줘도 될 듯) 6. timer로 3600초에 한번씩 가져 옴 -thread로 바꿔..
Contact: j0n9m1n1@gmail.com