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