Commit ac08a225 by BellCodeEditor

auto save

parent 578e41ee
a=[]
\ No newline at end of file
a=[12,3214,5,35,4,65,7,47,867,9,869,2]
for n in a:
print(n)
\ No newline at end of file
def e():
a=[]
while True:
s=input('请输入价格(按k结算)')
if s == 'k':
return a
else:
a.append(int(s))
def en(b):
l=0
for i in b:
l=l+i
return l
def c(v,j):
e = v * j / 2
return e
x=c(j=input('请输入三角形的高:') int(j),v=input('请输入三角形的底:') int(v))
print('三角形的面积为'+str(x))
import py
n=py.e()
x=py.en(n)
print('您一共需要支付',x,'元。')
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