Cokes Blog
GitHub 포트폴리오
close
프로필 배경
프로필 로고

Cokes Blog

  • 분류 전체보기 (177)
    • 일상 (1)
    • 파이썬 (33)
    • Back-End (1)
      • JAVA (10)
      • Spring(Boot) (42)
      • PHP (4)
    • Front-End (15)
      • HTML-CSS (2)
      • JavaScript (4)
      • Vue.js (8)
      • TypeScript (0)
      • React (1)
    • DB (1)
    • 알고리즘, 코딩 문제풀기 (38)
    • DevOps (12)
      • Jenkins (5)
      • Docker-Kubernetes (3)
      • AWS (4)
    • Build tools (2)
      • Gradle-Maven (2)
    • Linux (3)
    • Git (2)
    • 자격증 (1)
    • 기타 (4)
    • 번외 Project (7)

    aiohttp post 요청 시 form data

    aiohttp.FormData() 를 사용해야함.form_data = aiohttp.FormData()form_data.add_field("id", id)form_data.add_field("pass", pass) async with aiohttp.ClientSession() as s: async with s.post("url", data=form_data) as response: html = await response.text(encoding='utf-8', errors='ignore') errors='ignore' 는 인코딩 과정에서 발생하는 오류 무시하기 위함. -> aiohttp 와 관련 없습니다.

    • format_list_bulleted 파이썬
    • · 2025. 4. 8.
    • textsms
    18108번 문제 1998년생인 내가 태국에서는 2541년생?! (파이썬)

    18108번 문제 1998년생인 내가 태국에서는 2541년생?! (파이썬)

    https://www.acmicpc.net/problem/18108  a = input()print(int(a) - 543) import sysa = sys.stdin.readline()print(int(a) - 543)

    • format_list_bulleted 알고리즘, 코딩 문제풀기
    • · 2025. 3. 11.
    • textsms

    장고, 모델에서 db_table 외부 변경해보기

    class User(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=20, blank=True, null=True) age = models.IntegerField class Meta: managed = False db_table = 'users'보통은 Meta를 사용해 db_table 명을 지정하게 됩니다.고정적으로 해당 모델은 하나의 DB를 사용한다 했을 때 사용합니다. 저는 이번에 날짜나 숫자에 따른 DB 테이블을 적용하기 위한 방법으로 사용해보았습니다.class MarketExportResult(models.Model): id = models.Au..

    • format_list_bulleted 파이썬
    • · 2024. 5. 3.
    • textsms

    파이썬 APScheduler 실행해보기

    https://velog.io/@jw3418/python%EC%9C%BC%EB%A1%9C-daemon-scheduler-%EA%B5%AC%ED%98%84 python으로 daemon scheduler 구현 데이터 자동 추가를 위해 linux crontab을 이용하려 했는데, 실행하고자 하는 crawling.py 파일에 외부 라이브러리가 많아서 그런지 (crontab 파일에 따로 library path를 추가해야 할듯?) crontab이 매달 실행 velog.io 참고 블로그 def job_function(): subprocess.run(args=[sys.executable, "./main.py"]) sched = BackgroundScheduler(timezone='Asia/Seoul') # interv..

    • format_list_bulleted 파이썬
    • · 2023. 12. 13.
    • textsms

    pyqt pyside scrollArea QScrollArea 맨 위로 스크롤 하기

    self.ui.scrollArea.ensureVisible(0, 0) self.scrollArea.ensureVisible(0, 0) scrollArea.ensureVisible(0, 0) # 사용 x=0, y=0

    • format_list_bulleted 파이썬
    • · 2023. 12. 4.
    • textsms

    파이썬 pyqt QComboBox style

    # enabled = False 일 경우 QComboBox:disabled{ background-color: #e0e0e0; border: 2px solid #e0e0e0; } # 기본 style QComboBox{ border: 2px solid #e0e0e0; } # 드롭다운 화살표 style QComboBox::down-arrow{ image: url(:/icon/icon/down-arrow.png); } # 드롭다운 화살표 버튼 style QComboBox::drop-down:button{ background-color: transparent; }

    • format_list_bulleted 파이썬
    • · 2023. 11. 22.
    • textsms

    파이썬 pyqt pyside qcheckbox 테두리 style

    # 일반 체크박스 QCheckBox{ margin-bottom: 5px; } # 체크박스 자체 QCheckBox:indicator { border: 2px solid #e0e0e0; background: none;padding-bottom: 50px; } # 체크박스 체크 후 QCheckBox:indicator:checked { background-color: black; }

    • format_list_bulleted 파이썬
    • · 2023. 11. 21.
    • textsms

    파이썬 데이터프레임 dataframe 특정 인덱스 행을 마지막으로 옮기기

    index_name = "a" temp = df.loc[index_name].copy() # 해당 인덱스 명으로 접근해서 복사 df.drop(index_name, inplace=True) # 기존 index_name 을 가진 행 삭제 df.loc[len(df)] = temp # 행 의 개수로 마지막 행에 temp를 추가 df.index.values[len(df) - 1] = "a" # index 명을 a로 변경

    • format_list_bulleted 파이썬
    • · 2023. 11. 2.
    • textsms
    • navigate_before
    • 1
    • 2
    • 3
    • 4
    • navigate_next
      Cokes Blog
      호두와 녹두
      반응형
      전체 카테고리
      • 분류 전체보기 (177)
        • 일상 (1)
        • 파이썬 (33)
        • Back-End (1)
          • JAVA (10)
          • Spring(Boot) (42)
          • PHP (4)
        • Front-End (15)
          • HTML-CSS (2)
          • JavaScript (4)
          • Vue.js (8)
          • TypeScript (0)
          • React (1)
        • DB (1)
        • 알고리즘, 코딩 문제풀기 (38)
        • DevOps (12)
          • Jenkins (5)
          • Docker-Kubernetes (3)
          • AWS (4)
        • Build tools (2)
          • Gradle-Maven (2)
        • Linux (3)
        • Git (2)
        • 자격증 (1)
        • 기타 (4)
        • 번외 Project (7)
      최근 글
      인기 글
      최근 댓글
      태그
      • #pyqt
      • #문자열
      • #파이썬
      • #백준
      • #코딩테스트
      • #python
      • #알고리즘
      • #Java
      • #코딩
      • #자바
      전체 방문자
      오늘
      어제
      전체
      Copyright © 쭈미로운 생활 All rights reserved.
      Designed by JJuum

      티스토리툴바