发布时间: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 = [.........【阅读全文】
发布时间:2022-11-18 16:30:48
import randomfrom math import sin, cos, pi, logfrom tkinter import *CANVAS_WIDTH = 640 # 画布的宽CANVAS_HEIGHT = 480 # 画布的高CANVAS_CENTER_X = CANVAS_WIDTH / 2 # 画布中心的X轴坐标CANVAS_CENTER_Y = CANVAS_HEIGHT / 2 # 画布中心的Y轴坐标IMAGE_ENLA.........【阅读全文】
发布时间:2022-11-16 17:15:40
from turtle import *from time import sleepdef go_to(x, y): up() goto(x, y) down()def big_Circle(size): #函数用于绘制心的大圆 speed(9) for i in range(150):  .........【阅读全文】