Commit 9b2c8a84 by BellCodeEditor

auto save

parent dc70412a
Showing with 35 additions and 0 deletions
a=input("请输入五个数字")
s=a.split(",")
print(s)
b=0
for i in s:
b+=int(i)
ps=float(b/5)
print(str(b)+" "+str(ps))
import turtle as t
t.color("black","blue")
t.penup()
t.goto(-100,100)
t.pendown()
for i in range(4):
t.forward(200)
t.right(90)
t.penup()
t.goto(0,-50)
t.pendown()
t.pencolor("blue")
t.begin_fill()
t.circle(50,180)
t.end_fill()
t.done()
\ No newline at end of file
import turtle as t
t.color("orange")
t.circle(100)
t.right(-90)
t.forward(200)
t.backward(100)
t.right(90)
t.forward(100)
t.backward(200)
t.done()
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