发布时间:2021-11-11 17:19:55
import numpy as npimport pandas as pdfrom sklearn.datasets import load_irisfrom sklearn.model_selection import train_test_splitimport matplotlib.pyplot as plt# datadef create_data(): iris = load_iris() df = pd.DataFrame(.........【阅读全文】
发布时间:2021-11-10 17:18:09
import base64from math import pi, sin, cosfrom bokeh.util.browser import viewfrom bokeh.colors.named import (aquamarine, bisque, crimson, darkolivegreen, firebrick, gainsboro, hotpink, indigo, khaki,  .........【阅读全文】
发布时间:2021-11-04 17:25:59
# -*- coding:utf-8 -*-from PIL import Imageimport osimport numpy as npimgDir = r"/Volumes/DBA/python/img/"bgImg = r"/Users/lpc/Downloads/494.jpg"# 获取图像的平均颜色值def compute_mean(imgPath): ''' 获取图像平均颜色值.........【阅读全文】
发布时间:2021-11-02 17:17:12
from tkinter import *from tkinter import messageboxfrom tkinter.filedialog import *import numpy as npimport matplotlib.pyplot as pltimport pandas as pdimport matplotlib.ticker as tickerimport mpl_toolkits.axisartist as AAfrom mpl_toolkits.axisartist.axislines import.........【阅读全文】
发布时间:2021-10-29 17:11:39
import datetimeimport turtlename = []def drawLine(draw): # 绘制单段数码管 turtle.pendown() if draw else turtle.penup() turtle.fd(40) turtle.right(90)def drawLine1(draw): # 绘制单段数码管1.........【阅读全文】