<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          cachetoolsPython 模塊

          聯(lián)合創(chuàng)作 · 2023-09-28 12:22

          cachetools 是一個 Python 模塊,提供各種記憶集合和修飾符,包括 Python 3 標準庫的 @lru_cache 函數(shù)修飾符。

          >>> from cachetools import LRUCache
          >>> cache = LRUCache(maxsize=2)
          >>> cache.update([('first', 1), ('second', 2)])
          >>> cache
          LRUCache([('second', 2), ('first', 1)], maxsize=2, currsize=2)
          >>> cache['third'] = 3
          >>> cache
          LRUCache([('second', 2), ('third', 3)], maxsize=2, currsize=2)
          >>> cache['second']
          2
          >>> cache['fourth'] = 4
          >>> cache
          LRUCache([('second', 2), ('fourth', 4)], maxsize=2, currsize=2)
          瀏覽 26
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  一区二区三区四区无码免费 | 日批网站全免费 | 日韩毛片 | 精品乱子伦一区二区三区在线播放 | 青青操网|