1,函數參數的類型
php
默認參數值,關鍵字參數的區別,http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=968505 python
2, 下面這句不太理解函數
for arg in arguments:
def cheeseshop(kind, *arguments, **keywords): print "-- Do you have any", kind, "?" print "-- I'm sorry, we're all out of", kind for arg in arguments: print arg print "-" * 40 keys = sorted(keywords.keys()) for kw in keys: print kw, ":", keywords[kw]
3, Lambda形式
.net