Skip to main content

Korean-based Python syntax translator | 한국어 파이썬 번역기

Project description

KPTH (korean Python Path)

kpth는 파이썬의 문법을 한국어로 번역한 라이브러리입니다.

해당 라이브러리는 실제 프로젝트에서 사용하기에는 어려움이 있습니다.

사용법

kpth는 .kpy 확장명을 사용합니다.(예: hello.kpy)

해당 파일 안에서 프로그래밍을 진행하시면 됩니다(기본 파이썬 문법도 그대로 작동합니다.).

실행

실행을 하려면 아래 명령어를 사용합니다.

ㅋㅍ [파일명]

사용시 해당 파일에 코드가 정상적으로 실행됩니다.

사용 예시

출력("안녕, 세계!")
~workspace$ ㅋㅍ hello.kpy
안녕, 세계!

번영된 문법


파이썬 예약어 (Keywords)

  • 거짓False
  • True
  • 없음None
  • 그리고and
  • 또는or
  • 아니다not

조건/반복

  • 만약if
  • 아니고만약elif
  • 아니면else
  • 동안while
  • 각각for
  • 안에in
  • 중단break
  • 계속continue

예외 처리

  • 시도try
  • 예외except
  • 결국finally
  • 발생raise

함수/클래스/람다

  • 정의def
  • 클래스class
  • 람다lambda
  • 반환return
  • 넘어가기pass

비동기 처리

  • 비동기async
  • 기다림await

패턴 매칭 (Python 3.10+)

  • 매칭match
  • 경우case

기타 키워드

  • 삭제del
  • 전역global
  • 비전역nonlocal
  • 로서as
  • is
  • 에서from
  • 불러오기import
  • 단언assert
  • 함께with
  • 생성yield

파이썬 내장 함수 (Built-in Functions)

  • 절댓값abs
  • 모두참all
  • 하나참any
  • 아스키ascii
  • 이진수bin
  • 불리언bool
  • 중단점breakpoint
  • 바이트배열bytearray
  • 바이트bytes
  • 호출가능callable
  • 문자chr
  • 클래스메서드classmethod
  • 컴파일compile
  • 복소수complex
  • 삭제속성delattr
  • 사전dict
  • 디렉터리dir
  • 몫나머지divmod
  • 열거enumerate
  • 평가eval
  • 실행exec
  • 필터filter
  • 실수float
  • 형식format
  • 고정집합frozenset
  • 속성얻기getattr
  • 전역변수globals
  • 존재여부hasattr
  • 해시hash
  • 도움말help
  • 16진수hex
  • 객체IDid
  • 입력input
  • 정수int
  • 인스턴스여부isinstance
  • 서브클래스여부issubclass
  • 반복자iter
  • 길이len
  • 리스트list
  • 지역변수locals
  • map
  • 최대값max
  • 메모리뷰memoryview
  • 최소값min
  • 다음값next
  • 객체object
  • 8진수oct
  • 열기open
  • 유니코드값ord
  • 거듭제곱pow
  • 출력print
  • 속성property
  • 범위range
  • 표현식repr
  • 역순reversed
  • 반올림round
  • 집합set
  • 설정속성setattr
  • 슬라이스slice
  • 정렬sorted
  • 정적메서드staticmethod
  • 문자열str
  • 합계sum
  • 슈퍼클래스super
  • 튜플tuple
  • 타입type
  • 변수들vars
  • 압축zip
  • 모듈가져오기__import__

파이썬 내장 예외 (Built-in Exceptions)

  • 예외Exception
  • 중단예외StopIteration
  • 비동기중단예외StopAsyncIteration
  • 산술오류ArithmeticError
  • 오버플로우오류OverflowError
  • 영으로나눔오류ZeroDivisionError
  • 부동소수점오류FloatingPointError
  • 어트리뷰트오류AttributeError
  • 버퍼오류BufferError
  • EOF오류EOFError
  • 입출력오류IOError
  • 파일존재오류FileExistsError
  • 파일없음오류FileNotFoundError
  • 허용되지않는오류PermissionError
  • 프로세스찾을수없음오류ProcessLookupError
  • 참조오류ReferenceError
  • 메모리오류MemoryError
  • 인덱스오류IndexError
  • 키오류KeyError
  • 값오류ValueError
  • 타입오류TypeError
  • 이름오류NameError
  • 할당되지않은로컬오류UnboundLocalError
  • 모듈없음오류ModuleNotFoundError
  • 임포트오류ImportError
  • 중단오류InterruptedError
  • 시간초과오류TimeoutError
  • 런타임오류RuntimeError
  • 재귀오류RecursionError
  • 낙찰오류NotImplementedError
  • 부착오류OSError
  • 환경오류EnvironmentError
  • 차단된파이프오류BrokenPipeError
  • 연결오류ConnectionError
  • 연결거부오류ConnectionRefusedError
  • 연결재설정오류ConnectionResetError
  • 연결중단오류ConnectionAbortedError
  • 차단된프로세스오류BlockingIOError

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kptha-0.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kptha-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file kptha-0.1.0.tar.gz.

File metadata

  • Download URL: kptha-0.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for kptha-0.1.0.tar.gz
Algorithm Hash digest
SHA256 50b5efa63a34913d7f5ecd4c57fbf6d3725eef1a40360c27757da32537860f07
MD5 387329199d8672bf5d1f69f6ad9a8f04
BLAKE2b-256 99225a7c0c0158cb745d90e866dbca6c98bdab86299393a6b531e049d66c0bea

See more details on using hashes here.

File details

Details for the file kptha-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kptha-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for kptha-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8cb908cb138d05d6e78784b79085631640b7f5cb3895ee2c3d80f7f8832fe172
MD5 b24a2ae5c0a5100c0f3958870fd16f7f
BLAKE2b-256 87562df96c564da97e4116be53650f587bd5ec1ffa63a4f356b4fdf7f6bee08b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page