Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3613121
  • 博文数量: 365
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2522
  • 用 户 组: 普通用户
  • 注册时间: 2019-10-28 13:40
文章分类

全部博文(365)

文章存档

2023年(8)

2022年(130)

2021年(155)

2020年(50)

2019年(22)

我的朋友

发布时间:2022-03-24 17:21:31

import redisimport uuidimport timeclass LockService:   """    基于Redis实现的分布式锁   """   host = 'localhost'   port = 6379   password = ''   db.........【阅读全文】

阅读(6378) | 评论(0) | 转发(0)

发布时间:2022-03-18 17:21:36

# -*- coding: utf-8 -*-import cv2import dlibimport numpy as npdetector = dlib.get_frontal_face_detector()  # dlib的正向人脸检测器predictor = dlib.shape_predictor(r'shape_predictor_68_face_landmarks.dat')  # dlib的人脸形状检测器def get_image_size(image): &.........【阅读全文】

阅读(933) | 评论(0) | 转发(0)

发布时间:2022-03-16 17:18:38

import turtle as Timport randomimport time#=======画樱花的躯干(60,t)===============T.title('凋落的樱花')def Tree(branch, t):    time.sleep(0.0005)    if branch > 3:        if 8 <= branch.........【阅读全文】

阅读(984) | 评论(0) | 转发(0)

发布时间:2022-03-15 17:18:55

# 导入import osimport timeimport tkinterimport tkinter.filedialogimport threadingimport pygame   # piproot = tkinter.Tk()root.title('音乐播放器')root.geometry('460x600+500+100')root.resizable(False,False)  # 不能拉伸folder =''res = [].........【阅读全文】

阅读(820) | 评论(0) | 转发(0)

发布时间:2022-03-11 17:19:09

class part:#为每一个烟花绽放出来的粒子单独构建一个类的对象 ,每个粒子都会有一些重要的属性,决定它的外观(大小、颜色)、移动速度等    def __init__(self, cv, idx, total, explosion_speed, x=0., y=0., vx = 0., vy = 0., size=2., color = 'red', lifespan = 2, **kwargs):&nb.........【阅读全文】

阅读(835) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册