python:attrdict

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
python:attrdict [2021/05/28 06:11] ともやんpython:attrdict [2021/05/28 06:42] (現在) ともやん
行 1: 行 1:
 ====== AttrDict - 属性スタイルでアクセスできる辞書 ====== ====== AttrDict - 属性スタイルでアクセスできる辞書 ======
- +本家/ソースコード: [[git>bcj/AttrDict|GitHub - bcj/AttrDict: A dictionary that allows attribute-style access.]]\\
-ソースコード: [[git>bcj/AttrDict|GitHub - bcj/AttrDict: A dictionary that allows attribute-style access.]]\\+
  
 ===== インストール ===== ===== インストール =====
行 20: 行 19:
 </WRAP> </WRAP>
  
 +===== 使い方 =====
 +<WRAP prewrap 100% #mincode>
 +<code python>
 +>>> from attrdict import AttrDict
 +>>> ad = AttrDict({'foo': 'bar'})
 +>>> ad.foo
 +'bar'
 +>>> ad['foo']
 +'bar'
 +</code>
 +</WRAP>
  
  • python/attrdict.txt
  • 最終更新: 2021/05/28 06:42
  • by ともやん