发布时间: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.........【阅读全文】
发布时间:2021-10-28 17:24:04
from tkinter import *from tkinter import messageboxfrom tkinter import ttkimport osimport webbrowserimport urllib.request #发送网络请求,获取数据import gzip #压缩和解压缩模块import json .........【阅读全文】
发布时间:2021-10-25 17:19:37
import osimport cfgimport sysimport pygameimport randomfrom modules import *'''游戏初始化'''def initGame(): # 初始化pygame, 设置展示窗口 pygame.init() screen = pygame.display.set_mode(cfg.S.........【阅读全文】