본문 바로가기

Daily Develope

검색하기
Daily Develope
프로필사진 noggame

  • 분류 전체보기 (116)
    • Develope (56)
      • Python (33)
      • Web (19)
      • ETC (4)
    • AI (16)
    • DB (6)
    • MicroService (7)
      • Docker (6)
      • Kubernetes (1)
    • OS (16)
      • Linux (11)
      • Windows (1)
      • Mac (4)
    • Git (7)
    • Algorithm (1)
    • Favorite (4)
      • 책갈피 (4)
      • Music (0)
Guestbook
Notice
  • migration 중입니다...
Recent Posts
Recent Comments
Link
«   2026/04   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
Tags
  • Python
  • file
  • Converting
  • pandas
  • pytorch
  • 책갈피
  • Flask
  • docker
  • Paper
  • list
  • KAKAO
  • GitLab
  • AI
  • Laravel
  • git
  • Container
  • ubuntu
  • Package
  • Mac
  • LLM
  • TORCH
  • Database
  • evaluation
  • format
  • DB
  • Windows
  • Linux
  • judge
  • PostgreSQL
  • numpy
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록optional (1)

Daily Develope

[Python] Typing

의미 Type checking을 위해 데이터의 유형을 명시적으로 나타내기 위해 사용하는 Class (또는 Type) 자주 사용되는 Type Any : 모든 Type과 호환되는 Type Union : Union 리스트에 선언된 Type 중 하나에 해당함을 의미 def foo(arg: Union[int, float] = None) -> None: # arg는 int 또는 float 유형 # ... Optional : Optional 리스트에 선언된 Type이거나 None인 경우를 의미 def foo(arg: Optional[int] = None) -> None: # ... 가끔 사용되는 Type NoReturn : function의 반환값이 없음을 명시적으로 표현 from typing import NoRet..

카테고리 없음 2023. 10. 17. 16:00
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바