发布时间:2022-09-22 17:16:37
import osimport requestsimport base64import cv2import numpy as npfrom PIL import Imagefrom pathlib import Pathpath = os.getcwd()paths = list(Path(path).glob('*'))def get_access_token(): url = 'https://aip.baidubce.com/oauth/2.0/token'.........【阅读全文】
发布时间:2022-09-21 13:58:27
# 第一版#-*-coding:utf-8-*-import osimport reimport timeimport requestsimport bs4from bs4 import BeautifulSoup# 手动写入目标套图的首页地址download_url = "https://www.xgmn09.com/XiaoYu/XiaoYu23172.html"# 手动写入目标套图的页数page_num = 25# 创建一个文.........【阅读全文】
发布时间:2022-09-20 14:04:43
from lunar_sprites import *class PlaneGame(object): """兔子接月饼游戏""" def __init__(self): print("游戏初始化") pygame.init() &n.........【阅读全文】
发布时间:2022-09-16 12:05:34
import turtlet = turtle.Pen() # 画笔一 用于画图t.speed(0)# 花纹颜色 #F29407# 饼身颜色 #F8B41A# 画 饼身部分def outfill_flower(flower_num: "花瓣数量", flower_color: "花瓣颜色"): for i in range(flower_num): &nbs.........【阅读全文】
发布时间:2022-09-15 17:32:59
import randomimport turtlefrom turtle import *t = turtle.Turtle()w = turtle.Screen()def tree(branchLen, t): if branchLen > 3: if 8 <= branchLen <= 12: &nbs.........【阅读全文】