深拷贝与浅拷贝
- 拷贝:将容器内的内容备份到新的地址
浅拷贝
- 浅拷贝:可变类型公用同一个(里面的内容改变,但是地址不会变化)。对于不可变类型,一开始公用的,但是一旦改变则地址变化
1 | list1 = [1,2,3,4,5] |
深拷贝
- 深拷贝:可变类型单独创建不再共用。对于不可变类型,一开始公用的,但是一旦改变则地址变化
1 | list1 = [1,2,3,4,5] |
ls()
1 | list1 = [1,2,3,4,5] |
1 | list1 = [1,2,3,4,5] |
ls()
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment