Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2254ef0 commit 591128eCopy full SHA for 591128e
1 file changed
library/datetime.po
@@ -855,6 +855,12 @@ msgid ""
855
" is ``==`` or ``!=``. The latter cases return :const:`False` or "
856
":const:`True`, respectively."
857
msgstr ""
858
+"换句话说,当且仅当 ``date1.toordinal() < date2.toordinal()`` 时 ``date1 < date2``。 "
859
+"日期比较会引发 :exc:`TypeError`,如果比较目标不为 :class:`date` 对象的话。 不过也可能会返回 "
860
+"``NotImplemented``,如果比较目标具有 :meth:`timetuple` 属性的话。 "
861
+"这个钩子给予其他日期对象类型实现混合类型比较的机会。 否则,当 :class:`date` 对象与不同类型的对象比较时将会引发 "
862
+":exc:`TypeError`,除非 ``==`` 或 ``!=`` 比较。 后两种情况将分别返回 :const:`False` 或 "
863
+":const:`True`。"
864
865
#: ../../library/datetime.rst:541
866
msgid ""
0 commit comments