03 2020 档案
摘要:import turtle import time # 同时设置pencolor=color1, fillcolor=color2 turtle.color("red", "yellow") turtle.begin_fill()#开始填充 for i in range(50): turtle.fo
阅读全文
摘要:from random import random#使用random函数库中的函数random from time import perf_counter#调用了time库中的perf_counter DARTS = 1000*1000#设置初始变量DARTS,抛洒点的总数量 hits =0.0#设
阅读全文
摘要:绘制五角星import turtle turtle.setup(600,350,200,200)#起始位置 turtle.pensize(2)#画笔大小 turtle.pencolor("black")#画笔颜色 turtle.fillcolor("red")#填充颜色 turtle.begin_f
阅读全文

浙公网安备 33010602011771号