Commit 35fb7ee2 by BellCodeEditor

auto save

parent 342cf29a
Showing with 57 additions and 2 deletions
a = int(input("aaa"))
spring=[3,4,5]
summer=[6,7,8]
autumn=[9,10,11]
winter=[12,1,2]
if a in spring:
print("这是春天")
elif a in summer:
print("这是夏天")
elif a in autumn:
print("这是秋天")
elif a in winter:
print("这是冬天")
else:
print("你输错了")
\ No newline at end of file
import random
a = random.randint(1,9)
while True:
b = int(input("输入1到9的一个数字:"))
if a==b:
print("猜对了,目标数字为%d"%a)
break
else:
print("猜错了")
continue
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.pencolor("red")
pen.fillcolor("red")
pen.begin_fill()
for i in range(5):
pen.forward(150)
pen.right(144)
pen.end_fill()
pen.hideturtle()
turtle.done()
\ No newline at end of file
print("hello,world!")
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.circle(20)
pen.penup()
pen.goto(0,-20)
pen.pendown()
pen.circle(40)
pen.penup()
pen.goto(0,-40)
pen.pendown()
pen.circle(60)
pen.penup()
pen.goto(0,-60)
pen.pendown()
pen.circle(80)
pen.hideturtle()
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