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 import random
screen=turtle.Screen() s=random.randint(1,100)
screen.bgcolor("pink") i=10
while i>0:
pen.pengoto(-100,0)
pen.pencolor("black") a=int(input("小宋老师有多高?"))
pen.write("我是你爸爸") if a<s:
pen.hideturtle() print("不不不不"+"小宋老师高亿点")
turtle.done() i=i-1
elif a>s:
print("不不不不"+"小宋老师矮亿点")
i=i-1
\ No newline at end of file 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