Python Logging logging 모듈 사용법 logging — Logging facility for Python — Python 3.10.5 documentation logging — Logging facility for Python Source code: Lib/logging/__init__.py This module defines functions and classes which implement a flexible event logging system for applications and libraries. The key benefit of having the logging API provided by a s docs.python.org logging 기본 사용법 Example #logging_example1.py .. 더보기 Python Flask flask란 flask는 파이썬의 가벼운 웹 프레임 워크로써, 주로 간단한 API를 만드는데 사용한다. 사용 방법 아래 예제 소스는 로컬 api 서버를 열어 “hello world!”를 리턴하는 예제다. from flask import Flask app = Flask(__name__) @app.route('/test') def test(): return "hello world!" app.run() flask 객체를 생성하여, @route 어노테이션을 사용하여 request를 받을 url(/test)을 설정하고 request를 받아 “hello world!”를 response해주는 예제로 실행 결과는 다음과 같다. 가장 간단한 사용법이다. template 자주 사용하는 HTTP GET, POST 요청 예시.. 더보기 Python Argparse argparse 라이브러리 사용법 argparse — Parser for command-line options, arguments and sub-commands — Python 3.10.5 documentation argparse — Parser for command-line options, arguments and sub-commands Source code: Lib/argparse.py The argparse module makes it easy to write user-friendly command-line interfaces. The program defines what arguments it requires, and argparse will figure docs.python.org 명령행 옵션 .. 더보기 이전 1 다음