안녕하세요, 파이썬을 계절학기로 듣고 있는 대학생입니다. 강의안에 있는 터틀로 속이 찬 별 그리기를 하고 있는데, 아무리해도 별 가운데는 칠해지지 않습니다. 혹시 코드를 어떻게 고쳐야 하는 걸까요? 알려주시면 정말 감사하겠습니다!
import turtle
t=turtle.Turtle()
t.shape("turtle")
turtle.bgcolor("black")
import random
clist=["#d4c1cf","blue","green","#8affd4","#ff19c6","purple","#ff19c6"]
j=0
p=0
while j<20:
x = random.randint(-200, 190)
y = random.randint(-200, 190)
rancolor = random.choice(clist)
t.pencolor(rancolor)
t.fillcolor(rancolor)
length = random.randint(10, 100)
t.begin_fill()
for p in range (5):
t.forward(length)
t.right(144)
t.end_fill()
t.penup()
t.goto(x,y)
j=j+1