• Skip to primary navigation
  • Skip to content
  • Skip to footer
Isaac Note
  • 技術
  • 總經
  • 標籤
  • 關於

    本頁目錄

    Recent Posts

    • 6.9m 職缺還掛著,3.1% 錄用率先掉到疫情低點:美國勞動市場先進入招聘凍結 04/03
    • 12.33% 關稅降下來了,650 億美元順差仍在:台灣輸美風險已從稅率表移到產能表 03/30
    • Relevant Search 讀書筆記(6):排序函數與商業平衡 03/28
    • 全球 2.9% 的支撐點:AI 投資撐住成長,4.0% 通膨延後降息時鐘 03/27
    • Relevant Search 讀書筆記(6):Phrase Matching 與 Filter/Facet/Aggregation 03/27

    function is an object

    python 的 function 是一個物件, 所以可以放進 collection 中等以後被呼叫.
    >>> def a():
     print 'a';
    
     
    >>> def b():
     print 'b';
    
     
    >>> def c():
     print 'c';
    
     
    >>> list = [a,b,c];
    >>> for f in list:
     f();
    
     
    a
    b
    c
    

    What to read next

    Previous / Next
    Previous: split large file Next: tuple 就是不可變的 list
    More like this
    • Relevant Search 讀書筆記(6):排序函數與商業平衡 2026-03-28
    • Relevant Search 讀書筆記(6):Phrase Matching 與 Filter/Facet/Aggregation 2026-03-27
    • Relevant Search 讀書筆記(5):Indexing 與 Boolean Search 2026-03-25
    Subscribe via RSS: Macro · Tech

    Tags: python

    Updated: August 29, 2015

    Share on

    X Facebook LinkedIn Bluesky
    Previous Next
    • Feed
    © 2026 Isaac Note. Powered by Jekyll & Minimal Mistakes.