会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Vito.K
Non Geek, Be Geek!
博客园
首页
新随笔
联系
管理
订阅
2015年12月4日
Python的16个“坑”
摘要: 1. 不要使用可变对象作为函数默认值代码如下:In [1]: def append_to_list(value, def_list=[]): ...: def_list.append(value) ...: return def_list ...: In ...
阅读全文
posted @ 2015-12-04 10:18 Vito.K
阅读(4839)
评论(0)
推荐(1)
公告