Copy of python

There are shallow and deep copies

Shallow copies will switch when the nested destination changes

Deep copy if nested Is it a light copy that doesn't nest?

import copy
copy.copy(pokopoko) #Shallow copy
cpoy.deepcopy(pokopoko) #Deep copy

pokopoko[:] #A shallow copy of the list

I wonder if it's like this

Recommended Posts

Copy of python
Copy of python preferences
[Python] Copy of multidimensional list
Introduction of Python
Basics of Python ①
Basics of python ①
Introduction of Python
List of python modules
Unification of Python environment
Copy of multiple List
Basics of Python scraping basics
[python] behavior of argmax
Usage of Python locals ()
the zen of Python
# 4 [python] Basics of functions
Basic knowledge of Python
Sober trivia of python3
Summary of Python arguments
Basics of python: Output
Installation of matplotlib (Python 3.3.2)
Application of Python 3 vars
Various processing of Python
[Introduction to Udemy Python 3 + Application] 19. Copy of list
Make a copy of the list in Python
[Python] Correct usage of map
Towards the retirement of Python2
Summary of Python3 list operations
Python --Quick start of logging
Recommendation of binpacking library of python
Python
[python] Value of function object (?)
Automatic update of Python module
Python --Check type of values
Python shallow and deep copy
Static analysis of Python programs
About various encodings of Python 3
Equivalence of objects in Python
Introduction of activities applying Python
python> Handling of 2D arrays
Install multiple versions of Python
Version upgrade of python Anaconda
Handling of python on mac
python: Basics of using scikit-learn ①
2.x, 3.x character code of python
Comparison of 4 Python web frameworks
Check OpenSSL version of python 2.6
Python implementation of particle filters
Post processing of python (NG)
Faster loading of Python images
Sample usage of Python pickle
Basic usage of Python f-string
Implementation of quicksort in Python
[Python] Correct usage of join
About the features of Python
Source installation and installation of Python
Full understanding of Python debugging
Environment construction of python2 & 3 (OSX)
Python 2D array trap [Copy array]
Basics of Python × GIS (Part 1)
Python # About reference and copy
The Power of Pandas: Python