@@ -541,7 +541,7 @@ msgstr "``repr(t)``"
541541msgid ""
542542"Returns a string representation of the :class:`timedelta` object as a "
543543"constructor call with canonical attribute values."
544- msgstr "返回一个构造器形式的表达 :class:`timedelta` 对象的字符串 。"
544+ msgstr "返回一个构造器调用形式的字符串,形如 'datetime.datetime(2019, 6, 1, 12, 31)' 。"
545545
546546#: ../../library/datetime.rst:298 ../../library/datetime.rst:514
547547#: ../../library/datetime.rst:2181
@@ -570,6 +570,8 @@ msgid ""
570570"similarly to their internal representation. This leads to somewhat unusual "
571571"results for negative timedeltas. For example:"
572572msgstr ""
573+ " :class:`timedelta` 对象字符串的标准化与它们的内部表达方式相似。这就会导致在 ``timedelta`` "
574+ "为负值时一些不寻常的情况。例如:"
573575
574576#: ../../library/datetime.rst:323
575577msgid ""
@@ -584,6 +586,8 @@ msgid ""
584586"support certain additions and subtractions with :class:`date` and "
585587":class:`.datetime` objects (see below)."
586588msgstr ""
589+ "除了上面列举的运算方法之外, :class:`timedelta` 对象还支持一些与 :class:`date` "
590+ "对象和:class:`.datetime` 对象的操作。(见下文)"
587591
588592#: ../../library/datetime.rst:331
589593msgid ""
@@ -611,6 +615,8 @@ msgid ""
611615"object is considered to be true if and only if it isn't equal to "
612616"``timedelta(0)``."
613617msgstr ""
618+ ":class:`timedelta` 对象是 :term:`hashable` 类型的(可以作为字典关键字), 支持高效获取, 在布尔上下文中, "
619+ ":class:`timedelta` 对象大多数情况下都被视为真,仅在不等于 ``timedelta(0)`` 时。"
614620
615621#: ../../library/datetime.rst:350 ../../library/datetime.rst:544
616622#: ../../library/datetime.rst:1018 ../../library/datetime.rst:1538
0 commit comments