PTT
數位生活區
即時熱門文章
24小時內熱門文章
最新文章
熱門看板
看板列表
我的收藏
最近瀏覽
批踢踢 PTT 搜尋引擎
看板
[
Python
]
討論串
[問題] membership test
共 2 篇文章
排序:
最舊先
|
最新先
|
留言數
|
推文總分
內容預覽:
開啟
|
關閉
|
只限未讀
首頁
上一頁
1
下一頁
尾頁
#1
[問題] membership test
推噓
0
(0推
0噓 0→
)
留言
0則,0人
參與
,
最新
作者
huggie
(huggie)
時間
17年前
發表
(2008/03/31 19:29)
,
編輯
資訊
1篇文章回應此文
1
內文有0個圖片
image
0
內文有0個連結
link
0
內容預覽:
我自訂了一個 class ..裡面有個 dictionary 的 member. 對 dictionary inheritance 不熟,貪快所以直接用包的。. __getitem__ 可以用來做 index. 我就用來 proxy (是這樣稱呼嗎) 裡面的那個 dictionary. 但是 mem
#2
Re: [問題] membership test
推噓
1
(1推
0噓 0→
)
留言
1則,0人
參與
,
最新
作者
chmate
([][][])
時間
17年前
發表
(2008/03/31 22:31)
,
編輯
資訊
0篇文章回應此文
0
內文有0個圖片
image
0
內文有1個連結
link
1
內容預覽:
http://docs.python.org/ref/comparisons.html.
For user-defined classes which define the __contains__() method, x in y is. true if and only if y.__conta
首頁
上一頁
1
下一頁
尾頁