본문 바로가기
반응형

전체 글63

[Python] 파이썬, Pandas 32bit 설치 오류 정리 파이썬 32bit에서 pandas를 설치하는 경우 오류 1. Build Tools for Visual Studio 설치 필요https://pandas.pydata.org/docs/development/contributing_environment.html Creating a development environment — pandas 2.2.2 documentationCreating a development environment To test out code changes, you’ll need to build pandas from source, which requires a C/C++ compiler and Python environment. If you’re making documentation chan.. 2024. 5. 4.
[Python] 파이썬, 윈도우 화면에 이미지 그리기 1. 이미지 그리기 import win32gui from PIL import Image, ImageWin class DrawOnDesktop: def __init__(self): self.hwnd = win32gui.GetDesktopWindow() self.hdc = win32gui.GetDC(self.hwnd) def draw_image(self, image_path, x, y): # 이미지 열기 image = Image.open(image_path) # 이미지를 바탕화면의 DC에 복사 img_dc = ImageWin.Dib(image) img_dc.draw(self.hdc, (x, y, x + image.width, y + image.height)) # 이미지 파일 경로 (.jpg 이미지) imag.. 2024. 4. 22.
[시놀로지 NAS] Synology Chat의 Webhook 파이썬으로 보내기 1. Synology Chat 설치 2. 채널 만들기 3. Webhook 만들기 Webhook 봇을 생성합니다. Webhook URL은 메시지를 보낼 때 사용되니 추후에 URL을 넣어달라고 할 때 이것을 넣어줍니다. 4. 파이썬에서 메세지 보내기 import requests import json import time import urllib3 urllib3.disable_warnings() def send_chat(message): """ Chat 메세지 요청을 보냅니다. Args: message [str]: 메세지 """ url = "Webhook URL" params = { "payload":json.dumps({"text":message}) } response = requests.post(url, .. 2024. 3. 29.
git 명령어 1. git 다운로드 https://www.git-scm.com/downloads Git - Downloads Downloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. GUI Clients Git comes with built-in GUI tools (git-gui, gitk), but there are several third-party tools for users looking for a platform-specific exp www.git-scm.com git --version 2. git 명령어 git init 로컬 저장소 생성 git clone https://g.. 2023. 5. 8.
반응형