生日祝福代码python

您所在的位置:网站首页 用python程序祝生日快乐 生日祝福代码python

生日祝福代码python

2023-12-14 20:13| 来源: 网络整理| 查看: 265

#导入模块。。。

import random

import pygame,sys,os

pygame.mixer.init()

from pygame.locals import *

pygame.init()

fps = 30

fpsClock = pygame.time.Clock()

icon = pygame.image.load('resource/h-2.JPG')

bali = pygame.image.load('resource/baligonglu.png')

cake = pygame.image.load('resource/cake.png')

fire1 = pygame.image.load('resource/firework1.png')

fire2 = pygame.image.load('resource/firework2.png')

fire3 = pygame.image.load('resource/firework3.png')

fire4 = pygame.image.load('resource/firework4.png')

firesImg = [fire1,fire2,fire3,fire4]

font = pygame.font.Font('resource/繁星糖果.ttf',50)

font1 = pygame.font.Font('resource/繁星糖果.ttf',30)

boom_sound = pygame.mixer.Sound('resource/爆炸



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3