Commit b43f801b by BellCodeEditor

save project

parent 6e9c5911
def TNT(a,b):
sum=a
for i in range(b):
sum+=i
print(sum)
print('和为:',sum)
TNT(1,20)
\ No newline at end of file
def BLACKPINK():
a=input('输入一个数')
i=1
while i<=int(a):
print(i)
i+=1
print('循环结束')
BLACKPINK()
\ No newline at end of file
list=[]
try:
a=int(input('输入一个价格'))
except:
print("你输入的不是数字")
else:
list.append(a)
print("添加成功")
print(list)
print("所有操作结束")
\ No newline at end of file
def Rosie(a,h):
s=a*h/2
l=a*h/2
print(s)
print(s)
Rosie(2,5)
\ No newline at end of file
def Away():
s=(a+b)*2
l=a*b
print(s,l)
Away()
def Lisa(a,b):
a=7*c
b=8*d
Lisa()
\ No newline at end of file
list=[]
try:
a=int(input('输入一个价格'))
except:
print("你输入的不是数字")
else:
list.append(a)
print("添加成功")
print(list)
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