Commit b5af512b by BellCodeEditor

auto save

parent c819585c
Showing with 21 additions and 10 deletions
a=[125,127,136,134,137,138,126,135,140,145]
b=[]
for i in range(len(a)):
if a[i]<=135:
print('NO')
else:
b.append(a[i])
c=len(b)
b.sort()
print('女篮校队新增成员数目:',c,'她们的身高从矮到高分别是:',b)
# 悟空想画个六芒星魔法阵,主要的代码已写出,但这有bug,请你帮忙调试下~
import turtle
pen= turtle.Pen()
size=textinput("提示","你想要多大的魔法阵呀?")
pen.circle(size)
pen.circle(size,360,3)
pen.circle(size,60)
pen.circle(size,360,3)
turtle.done()
a=int(input())
b=int(input())
if a<0 or b<0:
print('输入有误')
elif a<b:
print('输入有误')
else:
print('周长是:{:.2f}厘米'.format((a+b)*2))
print('面积是:{:.2f}平方厘米'.format(a*b)
\ 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