Commit 265b09d2 by BellCodeEditor

auto save

parent bb62a39b
Showing with 63 additions and 0 deletions
import turtle
a=turtle.Screen()
a.bgcolor("black")
b=turtle.Pen()
b.circle(150,360)
b.fillcolor("red")
b.begin_fill()
b.circle(150,360)
b.end_fill()
b.penup()
b.goto(0,25)
b.pendown()
b.fillcolor("white")
b.begin_fill()
b.circle(120,360)
b.end_fill()
b.penup()
b.goto(0,60)
b.pendown()
b.fillcolor("red")
b.begin_fill()
b.circle(90,360)
b.end_fill()
b.penup()
b.goto(0,95)
b.pendown()
b.fillcolor("blue")
b.begin_fill()
b.circle(50,360)
b.fillcolor("blue")
b.end_fill()
b.penup()
b.goto(-45,160)
b.pendown()
b.fillcolor("white")
b.begin_fill()
for i in range(5):
b.forward(90)
b.right(144)
b.end_fill()
turtle.done()
\ No newline at end of file
a=input("请输入一个数:")
if a%2==1:
print("1")
else:
print("0")
\ No newline at end of file
a=input("请输入一个数:")
if int(a)%2==1:
print("1")
else:
print("0")
\ No newline at end of file
while True:
N=int(input("请输入一个正整数:"))
a=0
b=0
for i in range(N):
a+=1
b+=a
print(str(b))
\ 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