Commit a2ed00e2 by BellCodeEditor

save project

parent b20dc609
Showing with 11 additions and 0 deletions
class Cat():
def __init__(self):
self.color="black"
def skill(self,xx):
print("小猫抓住了"+xx)
def run(self):
print("小猫抓住了飞快地跑着")
n=Cat()
n.run()
n.skill("老鼠")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment