Commit 8fc10919 by BellCodeEditor

save project

parent 0497e423
Showing with 17 additions and 17 deletions
def qiyu(l, w):
return l * w
def sxh(h,s):
return s*h
s=qiyu(a,b)
print(sxh(,s))
def new_input(): a=int(input())
total=[] b=int(input())
while True: c=int(input())
a=input('请输入:(q退出):') def qiyu(l, w):
if a =="q": return l*w
break def sxh(h,s):
else: return s*h
try: s=qiyu(a,b)
a=int(a) print(sxh(c,s))
except: \ No newline at end of file
print("请重新输入一个数字")
else:
total.append(a)
print("-"*30)
print(total)
new_input()
\ 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