摘要: 不可变类型是可hash #tuple str freezeset 可变类型是不可hash ##list set 阅读全文
posted @ 2017-10-25 22:51 howhy 阅读(2177) 评论(0) 推荐(0) 编辑
摘要: l:local e:enclosing g:global b:buitl-in 函数变量有作用域 if else while 变量没有作用域 不能修改全局变量 若要修改需加global 阅读全文
posted @ 2017-10-25 22:36 howhy 阅读(207) 评论(0) 推荐(0) 编辑