python蟒蛇绘制程序
python蟒蛇绘制程序中第3行defmain():turtle.setup(1300,800,0,0)pythonsize=30turtle.pensize(pytho...
python蟒蛇绘制程序中第3行
def main():
turtle.setup(1300,800,0,0)
pythonsize = 30
turtle.pensize(pythonsize)
turtle.pencolor("blue")
turtle.seth(-40)
drawSnake(40,80,5,pythonsize/2)
turtle.pensize为什么还需要先有变量pythonsize=30 而不能像下面颜色语句一样turtle.pencolor("blue")直接turtle.pensize(30)。前面这个pythonsize有什么区别 展开
def main():
turtle.setup(1300,800,0,0)
pythonsize = 30
turtle.pensize(pythonsize)
turtle.pencolor("blue")
turtle.seth(-40)
drawSnake(40,80,5,pythonsize/2)
turtle.pensize为什么还需要先有变量pythonsize=30 而不能像下面颜色语句一样turtle.pencolor("blue")直接turtle.pensize(30)。前面这个pythonsize有什么区别 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询