Python Notes

来源:互联网 发布:python不打印空格 编辑:程序博客网 时间:2024/06/05 11:34
001. 201712051157 When you append lists to a list, you append references of the lists. Thus, you should append copy.copy(childrenlist) (import copy, by the way) to create a new list.
原创粉丝点击