Commit f0fc9dd8 by BellCodeEditor

auto save

parent 8c3b47cc
a=input("小宋老师出生什么季节")
if a== 3 or a== 4 or a== 5:
print("春天")
else a==6 or a==7 or a==8
print("夏天")
if a==9 or a==10 or a==11:
print("秋天")
else:
print("冬天")
\ No newline at end of file
import random
s=random.randint(0,10)
a=random.randint(0,10)
d=random.randint(0,10)
if s==a or a==d or d==s:
print("中奖了")
else:
print("滚")
\ No newline at end of file
import random
s=random.random()
if s<0.5:
print("大于零点五")
if s>0.5:
print("小于零点五")
if s==0.5:
print("等于零点五")
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen.pengoto(-100,0)
pen.pencolor("black")
pen.write("我是你爸爸")
pen.hideturtle()
turtle.done()
import random
s=random.randint(1,100)
i=10
while i>0:
a=int(input("小宋老师有多高?"))
if a<s:
print("不不不不"+"小宋老师高亿点")
i=i-1
elif a>s:
print("不不不不"+"小宋老师矮亿点")
i=i-1
else:
print("小宋老师就这么高")
break
else:
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