看板 [ Python ]
討論串[問題] 請教一個很蠢的問題@@
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者sbrhsieh (十年~)時間12年前 (2013/07/09 12:25), 編輯資訊
0
0
0
內容預覽:
有個 module 叫 types,內建的 type/class 都放在這個 module 裡,包括. old-style class 的共通型別(types.ClassType),old-style object 的共通. 型別 types.InstanceType。. 當你想要某種 builti
(還有265個字)

推噓2(2推 0噓 5→)留言7則,0人參與, 最新作者sbob (hmm)時間12年前 (2013/07/07 00:24), 編輯資訊
0
0
0
內容預覽:
這個問題我也不曉得這樣問對不對. int 是 type object 的 instance. 所以看int 的 type 會是 type,int 是 type object. >>> type(int). <type 'type'>. 看數值2 的 type 會是 int, 2 是 int obje
(還有463個字)
首頁
上一頁
1
下一頁
尾頁