一个老问题: def func(defau=[]): defau.append(1) return defau print(func())#print[1] print(func())#print[1,1] print(func())#print[1,1,1] 学python时候应该都遇到过这个问题,为什么?一般的说法是把这个可变的默认参数和函数绑定在一块了 但是,怎么绑定的??? 看python文档[1],里面对def的解释: A function definition is an execu…
一个非常高大上的Makefile,包括非常多语法: TARGET = api-login INSTALL_PATH = /huishoubao/cgi include ../../implements/log/Makefile.log include ../../implements/tools/Makefile.tools include ../../implements/db/Makefile.db include ../../implements/configure/Makefile.co…