Python學習(8)---3月26日打卡

遞歸函數: """ 功能:五角星的繪製 """ import turtle def draw_pentagram(size): """ 繪製五角星(使得結構簡潔,程序化) """ # 繪製一個 count = 1 while count <= 5: turtle.forward(size) turtle.right(1
相關文章
相關標籤/搜索