user:thomas 由使用者建立的 Gists
user:thomas
title:mygist Gists 的標題
title:mygist
filename:myfile.txt Gists 的檔案名稱
filename:myfile.txt
extension:yml Gists 的副檔名
extension:yml
language:go Gists 的程式語言
language:go
topic:homelab gists with given topic
topic:homelab
登錄
最後活躍 10 months ago
這段程式碼定義了一個 CustomDictionary 類別,繼承 Python 內建的 dict,並添加了一個 custom_property 屬性。該屬性返回自身,使得 custom_dict.custom_property 能夠訪問完整的字典內容。這種設計可用於擴展字典功能,提供自訂方法或屬性,而不影響原始字典行為。
嵌入
將這個 Gist 嵌入您的網站。
透過 HTTPS 複製
使用 HTTP 基本認證透過 Git 複製。
透過 SSH 複製
使用 SSH 金鑰透過 Git 複製。
由 Opengist 提供支持 ⋅ Load: 2ms⋅