发布时间:2022-11-29 17:22:18
python学习交流Q群:770699889 ###from PIL import Image,ImageDraw,ImageFont#像素放大尺寸img_king_size = 20#输入内容text = '这是xx的女神'#设置字体font =ImageFont.truetype('simsun.ttc',img_king_size)#图片路径img_path = './king.jpg'#打开图片img = Image.........【阅读全文】
发布时间:2022-11-25 16:00:21
//导入包import * as THREE from 'three';import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';import * as dat from 'dat.gui';import Stats from 'three/addons/libs/stats.module.js';let scene,camera,renderer//场景scene = new THREE.Scene();//坐标抽.........【阅读全文】
发布时间:2022-11-23 17:04:22
public void judge() {for(t = newchessX,s = newchessY,count = 0; t >=0 && s >= 0 && count <= 4; t--,s--,count++) {comeX = t;comeY = s;}for(t = newchessX, s = newchessY, count = 0; t <=14 && s >= 0 && count <= 4; t++, s--, count++) {toX = t;toY = s;}if(winFLAG == .........【阅读全文】
发布时间:2022-11-22 18:08:42
package com.cy.xgsm.controller;import java.math.BigDecimal;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.beans.factory.annotation.Qualifier;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.a.........【阅读全文】
发布时间:2022-11-21 17:33:15
import randomimport pygame'''植物'''class Plant(pygame.sprite.Sprite):def __init__(self, WIDTH=640, HEIGHT=500):pygame.sprite.Sprite.__init__(self)self.WIDTH = WIDTHself.HEIGHT = HEIGHT# 统计分数时用的self.added_score = Falseself.speed = 5# self.imgs = [.........【阅读全文】