摘要:
1 from random import random 2 import time 3 from time import perf_counter 4 darts=10000*10000 5 hits=0.0 6 scale=10 7 start=perf_counter() 8 for j in 阅读全文
摘要:
一、五角星的绘制 1 import turtle 2 turtle.pensize(5 ) 3 turtle.pencolor("black") 4 turtle.fillcolor("red") 5 turtle.begin_fill() 6 turtle.fd(200) 7 for i in r 阅读全文
摘要:
一 ,turtle绘图窗体布局(在窗口中使用的最小单位是像素) 用turtle.setup(width,height,startx,starty)函数设置启动窗体的位置和大小,参数不写,系统默认该窗口在屏幕的正中间. turtle.setup()并不是必要的,只有在编写程序需要控制窗体的大小时,才需 阅读全文