Commit 45702855 by BellCodeEditor

save project

parent ec0f4cba
import turtle
turtle.pensize(5)
turtle.pencolor('red')
turtle.fillcolor('red')
turtle.begin_fill()
turtle.left(45)
turtle.forward(100)
turtle.circle(50,180)
turtle.left(-90)
turtle.circle(50,180)
turtle.forward(100)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
turtle.left(90)
turtle.circle(50,180)
total = []
while True:
def d():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
else:
break #sssssssssssssss
else: #sssssssssssssss
try: #sssssssssssssss
unit=int(unit) #sssssssssssssss
except: #sssssssssssssss
print('666')
total.append(unit)
print(total)
\ No newline at end of file
return total
def c(l):
e=0
for i in l:
e+=i
return e
a= d()
t=c(a)
print(t)
\ 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