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
topic:homelab
登录
最后活跃于 10 months ago
這段程式碼定義了一個 CustomDictionary 類別,繼承 Python 內建的 dict,並添加了一個 custom_property 屬性。該屬性返回自身,使得 custom_dict.custom_property 能夠訪問完整的字典內容。這種設計可用於擴展字典功能,提供自訂方法或屬性,而不影響原始字典行為。
嵌入
将此 Gist 嵌入到您的网站。
通过 HTTPS 克隆
使用 HTTP 基础认证通过 Git 克隆。
通过 SSH 克隆
使用 SSH 密钥通过 Git 克隆。
由 Opengist 强力驱动 ⋅ Load: 3ms⋅