试绘制一个中国象棋棋盘,以棋盘的左下角为原点,先绘制一正长方形,用橙色填充,再在填充的区域上绘制中国象棋棋盘。
#象棋棋盘
from turtle import *
speed(0)
pensize(2)
width=60
setup(width=10*width,height=12*width)
screensize(10*width,12*width)
x,y=-4*width,-4*width
def drawChessboard(x,y,width):
home(
试绘制一个中国象棋棋盘,以棋盘的左下角为原点,先绘制一正长方形,用橙色填充,再在填充的区域上绘制中国象棋棋盘。
#象棋棋盘
from turtle import *
speed(0)
pensize(2)
width=60
setup(width=10*width,height=12*width)
screensize(10*width,12*width)
x,y=-4*width,-4*width
def drawChessboard(x,y,width):
home(