03 2020 档案

Python汉诺塔问题
摘要:move=0 def han (n,one,two,mid): global move if n==1: print("{}号盘子:从{}到{}".format(1,one,two)) move+=1 else: han(n-1,one,mid,two) print("{}号盘子:从{}到{}".f 阅读全文

posted @ 2020-03-31 11:58 zhangsijie 阅读(210) 评论(0) 推荐(0)

Python turtle学习笔记
摘要:Python turtle学习笔记 建立画布 turtle.screensize(canvwidth, canvheight, bg) 参数分别为画布的宽(单位像素), 高, 背景颜色 turtle.setup(width, height, startx, starty) width, height 阅读全文

posted @ 2020-03-22 22:28 zhangsijie 阅读(388) 评论(0) 推荐(0)

Python第一周作业
摘要:绘制五角星 import turtle turtle.setup(500,500) turtle.penup() turtle.fd(-100) turtle.pendown() turtle.fillcolor("red") turtle.begin_fill() for _ in range(5 阅读全文

posted @ 2020-03-14 13:01 zhangsijie 阅读(208) 评论(0) 推荐(0)

导航