Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌐 Add Korean translation for docs/ko/docs/extra-data-types.md #2528

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
65 changes: 65 additions & 0 deletions docs/ko/docs/extra-data-types.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 추가 데이터 타입들

지금까지, 일반적인 데이터 타입을 사용했습니다. 예를 들어:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
지금까지, 일반적인 데이터 타입을 사용했습니다. 예를 들어:
지금까지, 일반적인 데이터 자료형을 사용했습니다. 예를 들어 아래와 같습니다:

use less English as you can.

Check #2017 and it would be better to complete the sentence for natural.


* `int`
* `float`
* `str`
* `bool`

하지만 보다 복잡한 데이터 타입 또한 사용할 수 있습니다.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
하지만 보다 복잡한 데이터 타입 또한 사용할 수 있습니다.
하지만 보다 복잡한 데이터 자료형도 사용할 수 있습니다.


그리고 지금까지와 같은 기능들을 계속해서 사용할 수 있습니다.

* 훌륭한 에디터 도움.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 훌륭한 에디터 도움.
* 훌륭한 편집기 지원.

* 수신한 요청의 데이터 변환.
* 응답 데이터의 데이터 변환.
* 데이터 검증.
* 자동 어노테이션과 문서화.

## 다른 데이터 타입들
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 다른 데이터 타입들
## 다른 데이터 자료형들


여기에 사용할 수 있는 몇 가지 추가적인 데이터 타입들이 있습니다:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
여기에 사용할 수 있는 몇 가지 추가적인 데이터 타입들이 있습니다:
여기에 사용할 수 있는 몇 가지 추가적인 데이터 자료형이 있습니다:


* `UUID`:
* "범용 고유 식별자"의 표준으로, 많은 데이터베이스와 시스템에서 ID로 사용됩니다.
* 요청과 응답에서 `str`로 표현됩니다.
* `datetime.datetime`:
* 파이썬의 `datetime.datetime`.
* ISO 8601 형식에 따라, 요청과 응답에서 `str`로 표현됩니다. 예시: `2008-09-15T15:53:00+05:00`
* `datetime.date`:
* 파이썬의 `datetime.date`.
* ISO 8601 형식에 따라, 요청과 응답에서 `str`로 표현됩니다. 예시: `2008-09-15`.
* `datetime.time`:
* 파이썬의 `datetime.time`.
* ISO 8601 형식에 따라, 요청과 응답에서 `str`로 표현됩니다. 예시: `14:23:55.003`.
* `datetime.timedelta`:
* 파이썬의 `datetime.timedelta`.
* 요청과 응답에서 전체 초의 `float`으로 표현됩니다.
* 또한 Pydantic은 "ISO 8601 시차 인코딩"으로 표현하는 것을 허용합니다. <a href="https://pydantic-docs.helpmanual.io/#json-serialisation" class="external-link" target="_blank">더 많은 정보를 가진 문서 보기</a>.
* `frozenset`:
* 요청과 응답에서 `set`로 동일하게 처리됩니다:
* 요청에서, 리스트를 읽고 중복을 제거해 `set`로 변환합니다.
* 응답에서, `set`는 `list`로 변환됩니다.
* 생성된 스키마는 (JSON 스키마의 `uniqueItems`를 이용해서) `set`의 값이 고유함 명시합니다.
* `bytes`:
* 표준 파이썬의 `bytes`.
* 요청과 응답에서 `str`로 처리됩니다.
* 생성된 스키마는 `binary` "형태"의 `str`로 명시합니다.
* `Decimal`:
* 표준 파이썬의 `Decimal`.
* 요청과 응답에서, `float`과 동일하게 취급됩니다.
* 모든 유효한 pydantic 데이터 타입에 대해 확인 할 수 있습니다: <a href="https://pydantic-docs.helpmanual.io/usage/types" class="external-link" target="_blank">Pydantic 데이터 타입</a>.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 모든 유효한 pydantic 데이터 타입에 대해 확인 할 수 있습니다: <a href="https://pydantic-docs.helpmanual.io/usage/types" class="external-link" target="_blank">Pydantic 데이터 타입</a>.
* 모든 유효한 pydantic 데이터 자료형에 대해 확인 할 수 있습니다: <a href="https://pydantic-docs.helpmanual.io/usage/types" class="external-link" target="_blank">Pydantic 데이터 자료형</a>.


## 예시
다음은 위의 나온 몇몇 타입의 매개변수를 활용한 *경로 동작* 예시입니다.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
다음은 위의 나온 몇몇 타입의 매개변수를 활용한 *경로 동작* 예시입니다.
다음은 위의 나온 몇몇 자료형의 매개변수를 사용한 *경로 작동* 예시입니다.

동작 is for living things and 작동 is for kind of machines. Please check 파이썬 공식 한국어 문서에 없는 용어 중 현재 사용하고 있는 용어 #3167 .


```Python hl_lines="1 3 12-16"
{!../../../docs_src/extra_data_types/tutorial001.py!}
```

함수 안의 매개변수가 그들만의 데이터 타입을 갖고 있고, 또한 다음과 같은 날짜 조작을 할 수 있습니다. 예시:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
함수 안의 매개변수가 그들만의 데이터 타입을 갖고 있고, 또한 다음과 같은 날짜 조작을 할 수 있습니다. 예시:
함수 안의 매개변수가 그들만의 데이터 자료형을 갖고 있고, 또한, 예를 들어, 다음과 같은, 날짜 조작을 할 수 있습니다.:

for example refers to 예를 들어 and like (the last word of the sentence) refers to 다음과 같은.


```Python hl_lines="18-19"
{!../../../docs_src/extra_data_types/tutorial001.py!}
```
2 changes: 2 additions & 0 deletions docs/ko/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ nav:
- tr: /tr/
- uk: /uk/
- zh: /zh/
- 자습서 - 사용자 안내서:
- tutorial/extra-data-types.md
markdown_extensions:
- toc:
permalink: true
Expand Down