摘要: # -*- coding: utf-8 -*- """ Created on Mon Apr 6 22:45:36 2020 @author: 49594 """ # coding:utf-8 from wordcloud import WordCloud import matplotlib.pyp 阅读全文
posted @ 2020-04-06 23:14 Leeingli 阅读(222) 评论(0) 推荐(0) 编辑
摘要: import turtle import time # 同时设置pencolor=color1, fillcolor=color2 turtle.color("red", "yellow") turtle.begin_fill()#开始填充 for i in range(50): turtle.fo 阅读全文
posted @ 2020-03-22 18:25 Leeingli 阅读(162) 评论(0) 推荐(0) 编辑
摘要: from random import random#使用random函数库中的函数random from time import perf_counter#调用了time库中的perf_counter DARTS = 1000*1000#设置初始变量DARTS,抛洒点的总数量 hits =0.0#设 阅读全文
posted @ 2020-03-21 23:04 Leeingli 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 绘制五角星import turtle turtle.setup(600,350,200,200)#起始位置 turtle.pensize(2)#画笔大小 turtle.pencolor("black")#画笔颜色 turtle.fillcolor("red")#填充颜色 turtle.begin_f 阅读全文
posted @ 2020-03-11 16:10 Leeingli 阅读(196) 评论(1) 推荐(1) 编辑