Commit 5e4d1e6c by BellCodeEditor

save project

parent d35717e2
Showing with 343 additions and 0 deletions
l=input("请输入一串数字:")
q=list(l)
a=0
for i in q:
if i == "2":
a=a+1
print(a)
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("green")
pen.pencolor("blue")
pen.fillcolor("blue")
pen.begin_fill()
for i in range(4):
pen.forward(200)
pen.left(90)
pen.end_fill()
pen.forward(100)
pen.pencolor("red")
pen.fillcolor("red")
pen.begin_fill()
pen.circle(100)
pen.end_fill()
pen.penup()
pen.forward(100)
pen.pendown()
pen.pencolor("pink")
pen.write("内切圆",font=("Times",30,"nomal"))
pen.hideturtle()
turtle.done()
a=input("请输入整数:")
b=input("请输入整数:")
c=input("请输入整数:")
d=input("请输入整数:")
e=input("请输入整数:")
x=[]
x.append(a)
x.append(b)
x.append(c)
x.append(d)
x.append(e)
x.sort()
print(x)
\ 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