Commit 5f60c606 by BellCodeEditor

save project

parent 39ede87f
Showing with 17 additions and 33 deletions
def f():
total = []
while True:
unit= input("请输入:")
try:
if unit== 'q':
break
else:
unit=int(unit)
except:
print('请重新输入整数')
else:
total.append(unit)
f()
\ No newline at end of file
def e(): class Dog:
total = [] def __init__(self):
while True: self.f=4
unit= input("请输入:") self.e=2
if unit== 'q': self.h=1
break self.ear=2
else: self.skin="white"
try: def run():
unit=int(unit) print("狗狗跑起来")
except: class Q(Dog):
print("请重新输入") def __init__(self)
else: super().__init__(self)
total.append(unit) self.skin="black"
return total a=Q()
print(Q.skin)
\ No newline at end of file
result=e()
print(result)
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