python3

import ctypes lib = ctypes.windll.LoadLibrary('user32.dll') handle = lib.GetForegroundWindow() buffer = ctypes.create_unicode_buffer(255) lib.GetWindowTextW(handle, buffer, ctypes.sizeof(buffer)) active = buffer.value print(active) active 변수가 활성화된 창의 제목입니다.
import turtle as t import time # x, y축 그리기 t.pendown() t.goto(0, 1000) t.goto(0,0) t.goto(1000,0) t.penup() # 준비 x, y = 1, 1 x += 1 y = 400 // x t.goto(x, y) t.pendown() # 그래프 그리기 for i in range(600): t.goto(x, y) x += 1 y = 2000 // x print(x, y)
1. 클라이언트의 IP주소 # IP 가져오기 request.environ.get('HTTP_X_REAL_IP', request.remote_addr) 2. 클라이언트가 요청한 전체 url # 요청한 url request.full_path 3. 클라이언트가 요청한 method # http 메소드(GET 또는 POST) request.method 4. POST요청 처리 form 태그 안에 있는 입력 태그중 name이 title인 태그의 값을 가져옴 request.form.get('title') 5. GET요청 처리 # http://example.com/?name=값 에서 값을 가져옴 request.args.get("name") 6. 대략적인 정보 # str(request) 댓글 오류지적 환영합니다.
Sol Studio 공식 블로그
'python3' 태그의 글 목록