-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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 Chinese translation for Tutorial - Extra Data Types #2410
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2410 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 243 243
Lines 7419 7419
=========================================
Hits 7419 7419 Continue to review full report at Codecov.
|
📝 Docs preview for commit 4fdf617 at: https://5fbdc2bb06932f489ad48894--fastapi.netlify.app |
|
||
但是您也可以使用更复杂的数据类型。 | ||
|
||
And you will still have the same features as seen up to now: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks.
* Python `datetime.date`. | ||
* 在请求和响应中将表示为 ISO 8601 格式的 `str` ,比如: `2008-09-15`. | ||
* `datetime.time`: | ||
* A Python `datetime.time`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Untranslated “A”
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks.
* A Python `datetime.time`. | ||
* 在请求和响应中将表示为 ISO 8601 格式的 `str` ,比如: `14:23:55.003`. | ||
* `datetime.timedelta`: | ||
* A Python `datetime.timedelta`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Untranslated “A”
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks.
📝 Docs preview for commit 5f3f719 at: https://5fbefc5e1c765971df498863--fastapi.netlify.app |
{!../../../docs_src/extra_data_types/tutorial001.py!} | ||
``` | ||
|
||
注意,函数内的参数有其天然的数据类型,你可以,例如,执行正常的日期操作,如: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
natural -》 原生 Would be better to understand?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, "原生" is more appropriate, fixed, Thanks.
Thanks for your contribution @maoyibo ! 🍰 🤓 And thanks @waynerv and @Laineyzhang55 for your reviews. 🙇 🚀 |
Chinese translation add tutorial/extra-data-types