Commit 629fd378 by BellCodeEditor

auto save

parent b7498cbe
strong=float(input('请输入你的体重'))
tall=float(input('请输入你的身高'))
Bmi=strong/(tall*tall)
print('您的bmi{:.1f}'.format(Bmi))
if Bmi < 18.5:
print('过轻')
if 18.5 <= Bmi <= 23.9:
print('正常')
\ No newline at end of file
sum=0
list=['A','B','C','D']
for i in list:
for j in list:
for k in list:
if i != j and j!=k and i != k:
print(i+j+k)
sum=sum+1
print(sum)
\ No newline at end of file
...@@ -3,9 +3,6 @@ student2 = {'语文': 97, '数学': 98, '英语': 90} ...@@ -3,9 +3,6 @@ student2 = {'语文': 97, '数学': 98, '英语': 90}
student3 = {'语文': 95, '数学': 100, '英语': 93} student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3} score = {'悟空': student1, '诺依': student2, '小贝': student3}
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
while True : while True :
name = input("名字:") name = input("名字:")
......
def Num(n):
count=0
for i in range(1,n+1):
if n%i==0:
count=count+1
if count==2:
return 1
for i in range(1,1001):
string=str(i)
if '3' in string:
if '33' in string:
string='&'+string
if Num(i):
string=string+'*'
print(string)
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.hideturtle()
for i in range(12):
pen.pencolor('red')
pen.circle(120,30)
pen.pencolor('black')
pen.fillcolor('yellow')
pen.begin_fill()
pen.right(120)
pen.forward(80)
pen.left(60)
pen.forward(80)
pen.left(120)
pen.forward(80)
pen.left(60)
pen.forward(80)
pen.end_fill()
pen.right(120)
turtle.done()
\ 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