Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Direct assignment: With the original variables change
Shallow copy: copy.copy copy only the inside of the parent object, the child objects do not copy target
Deep copy: copy.deepcopy copy of the object and its children