human
I am working on the file "DesignPattern/ProtoTypePattern.ipynb".
The first task is:
接下来，如果需要再生成一个同样的图层，再填充同样的颜色，再画一只同样狗，该如何做呢？还是按照新建图层、填充背景、画的顺序么？或许你已经发现了，这里可以用复制的方法来实现，而复制（clone）这个动作，就是原型模式的精髓了。
按照此思路，在图层类中新加入两个方法：clone和deep_clone
Can you write Python code for it?

Write me a the Python code you requested?
assistant
#Here is the Python code you requested.

from copy import copy, deepcopy
class simpleLayer(object):
    background=[0,0,0,0]
    content="blank"
    def getContent(self):
        return self.content
    def getBackgroud(self):
        return self.background
    def paint(self,painting):
        self.content=painting
    def setParent(self,p):
        self.background[3]=p
    def fillBackground(self,back):
        self.background=back
    def clone(self):
        return copy(self)
    def deep_clone(self):
        return deepcopy(self)

dog_layer=simpleLayer()
dog_layer.paint('Dog')
dog_layer.fillBackground([0,0,255,0])
print('background:',dog_layer.getBackgroud())
print('Painting:', dog_layer.getContent())
another_dog_layer=dog_layer.clone()
print('background:',another_dog_layer.getBackgroud())
print('Painting:', another_dog_layer.getContent())