Commit 43d726a8 by BellCodeEditor

auto save

parent a31423be
Showing with 49 additions and 0 deletions
# import abc
# class Pet(metaclass-abc.ABCMeta):
# def __init__(self,name,age):
# self.name=name
# self.age=age
# def mealpay(self,name):
# pass
# class Dog(pet):
# def mealpay(self,name):
# print('undus')
# money=1*4*30
# print(dada)
# class Cat(pet):
# def mealpay(self,name):
# print('undus')
# money=1*6*30
# print(dada)
# class Pig(pet):
# def mealpay(self,name):
# print('undus')
# money=1*2*30
# print(dada)
# while True:
# print('迭代')
# choice=input('得到')
# if choice=="1":
# d1=Dog('导致',3)
# d1=mealpay(d1,name)
# elif choice=="2":
# c1=Cat('此次',2)
# c1=mealpay(c1,name)
# elif choice=="3":
# p1=Pig('命名',2)
# p1=mealpay(p1,name)
# else:
# print('您的输入有误')
\ 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