• 大小: 10.11M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-30
  • 语言: Python
  • 标签: python  HTML  

资源简介

这里是 Python 3.8.1 的中文文档。

资源截图

代码片段和文件信息

from datetime import tzinfo timedelta datetime

ZERO = timedelta(0)
HOUR = timedelta(hours=1)
SECOND = timedelta(seconds=1)

# A class capturing the platform‘s idea of local time.
# (May result in wrong values on historical times in
#  timezones where UTC offset and/or the DST rules had
#  changed in the past.)
import time as _time

STDOFFSET = timedelta(seconds = -_time.timezone)
if _time.daylight:
    DSTOFFSET = timedelta(seconds = -_time.altzone)
else:
    DSTOFFSET = STDOFFSET

DSTDIFF = DSTOFFSET - STDOFFSET

class LocalTimezone(tzinfo):

    def fromutc(self dt):
        assert dt.tzinfo is self
        stamp = (dt - datetime(1970 1 1 tzinfo=self)) // SECOND
        args = _time.localtime(stamp)[:6]
        dst_diff = DSTDIFF // SECOND
        # Detect fold
        fold = (arg

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-02-09 05:40  python-3.8.1-docs-html\
     文件        5975  2019-04-24 05:31  python-3.8.1-docs-html\genindex-解.html
     文件       57148  2020-02-09 05:40  python-3.8.1-docs-html\genindex-T.html
     文件        5965  2019-04-24 05:31  python-3.8.1-docs-html\genindex-协.html
     目录           0  2019-12-09 23:46  python-3.8.1-docs-html\_downloads\
     目录           0  2019-12-09 23:46  python-3.8.1-docs-html\_downloads\6b45dc135219d1404be49d606589a11d\
     文件        5860  2019-02-14 13:33  python-3.8.1-docs-html\_downloads\6b45dc135219d1404be49d606589a11d\tzinfo_examples.py
     目录           0  2019-02-14 13:36  python-3.8.1-docs-html\_downloads\7d09c51dc8c5350ec160281a83200b67\
     文件        5860  2019-02-14 13:33  python-3.8.1-docs-html\_downloads\7d09c51dc8c5350ec160281a83200b67\tzinfo_examples.py
     文件        5839  2019-04-24 11:31  python-3.8.1-docs-html\genindex-路.html
     文件       10711  2020-02-09 05:40  python-3.8.1-docs-html\genindex-Q.html
     文件      111806  2020-02-09 05:40  python-3.8.1-docs-html\objects.inv
     目录           0  2019-02-14 13:36  python-3.8.1-docs-html\howto\
     文件      148073  2020-02-09 05:18  python-3.8.1-docs-html\howto\regex.html
     文件      354187  2020-02-09 05:18  python-3.8.1-docs-html\howto\logging-cookbook.html
     文件      108677  2020-02-09 05:18  python-3.8.1-docs-html\howto\logging.html
     文件       33097  2020-02-09 05:17  python-3.8.1-docs-html\howto\instrumentation.html
     文件       58855  2020-02-09 05:17  python-3.8.1-docs-html\howto\curses.html
     文件       75853  2020-02-09 05:18  python-3.8.1-docs-html\howto\unicode.html
     文件       81425  2020-02-09 05:17  python-3.8.1-docs-html\howto\argparse.html
     文件        9058  2020-02-09 05:17  python-3.8.1-docs-html\howto\index.html
     文件       47343  2020-02-09 05:18  python-3.8.1-docs-html\howto\pyporting.html
     文件       59933  2020-02-09 05:17  python-3.8.1-docs-html\howto\descriptor.html
     文件       37304  2020-02-09 05:17  python-3.8.1-docs-html\howto\ipaddress.html
     文件      153112  2020-02-09 05:17  python-3.8.1-docs-html\howto\functional.html
     文件       39831  2020-02-09 05:18  python-3.8.1-docs-html\howto\sockets.html
     文件       70811  2020-02-09 05:18  python-3.8.1-docs-html\howto\urllib2.html
     文件        8282  2020-02-09 05:17  python-3.8.1-docs-html\howto\cporting.html
     文件       48894  2020-02-09 05:18  python-3.8.1-docs-html\howto\sorting.html
     文件      132578  2020-02-09 05:17  python-3.8.1-docs-html\howto\clinic.html
     文件        6022  2019-04-24 05:31  python-3.8.1-docs-html\genindex-虚.html
............此处省略1088个文件信息

评论

共有 条评论