小鸟

小鸟游戏

import pygame import sys import random # 素材参考地址:https://www.aigei.com/s?q=flappy+bird&type=2d class Bird(object): """定义一个鸟类""" def __init__(self): """ ......
小鸟

小鸟游戏

import pygame import sys import random import numpy as np class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Re ......
小鸟

python博客作业6(压扁小鸟)

import pygame import sys import random import numpy as np class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Re ......
小鸟 python 博客

小鸟游戏

import pygameimport sysimport random class Bird(object): """定义一个鸟类""" def __init__(self): """定义初始化方法""" self.birdRect = pygame.Rect(65, 50, 50, 50) se ......
小鸟

python博客作业6(压扁小鸟)

素材下载链接https://files.cnblogs.com/files/blogs/806410/assets.zip?t=1702797885&download=true import pygame import sys class Bird(object): """定义一个鸟类""" def ......
小鸟 python 博客

最后一次大作业——小鸟游戏

球弹起来: # -*- coding:utf-8 -*- import sys # 导入sys模块 import pygame # 导入pygame模块 pygame.init() # 初始化pygame size = width, height = 640, 480 # 设置窗口 screen = ......
小鸟

P1941 [NOIP2014 提高组] 飞扬的小鸟

#include <cstdio> #include <algorithm> using namespace std; const int N = 10005; const int M = 1005; const int INF = 1e9; int up[N], down[N], low[N], ......
小鸟 P1941 1941 NOIP 2014

P1941 [NOIP2014 提高组] 飞扬的小鸟 题解

我们先不管障碍物。 设 $f[i][j]$ 表示来到点 $(i,j)$ 的最少点击屏幕数。 因为每秒要不上升 $k\times x[i]$,要么下降 $y[i]$。 所以有: $$f[i][j] = min(f[i - 1][j + y[i]], f[i - 1][j - k \times x[i] ......
题解 小鸟 P1941 1941 NOIP
共8篇  :1/1页 首页上一页1下一页尾页