```python
class Ball():
def init(self,color,size,type):
self.color = color
self.size = size
self.type = type
def Play(self):
print('踢')
ball=Ball('白色','小','足球')
print(ball.color+ball.size+ball.type)
ball.Play(self)
```###### 运行结果及报错内容
白色小足球
Traceback (most recent call last):
ball.Play(self)
NameError: name 'self' is not defined
踢白色小足球
class Ball():
def __init__(self,color,size,type):
self.color = color
self.size = size
self.type = type
def Play(self):
print('踢')
ball=Ball('白色','小','足球')
print(ball.color+ball.size+ball.type)
ball.Play()