import turtle
t=turtle.Pen()
t.penup()
i = int(input('请输入棋盘的格式x*x'))
t.goto(-10*i,10*i)
for x in range(i+1):
t.pendown()
t.goto(10*i,-20*x+10*i)
t.penup()
t.goto(-10*i,-20*(x+1)+10*i)
t.goto(-10*i,10*i)
for x in range(i+1):
t.pendown()
t.goto(20*x-10*i, -10*i)
t.penup()
t.goto(-10*i+20*(x+1),10*i)
turtle.done()


