From ecb0ce750e0123e226e973b752633118f3cb1d91 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Wed, 5 Jul 2023 17:32:52 +0800 Subject: [PATCH] auto save --- HFYGY.py | 7 +++++++ background.png | Bin 136555 -> 0 bytes last.png | Bin 3877 -> 0 bytes logo.png | Bin 41846 -> 0 bytes my_music.py | 64 ---------------------------------------------------------------- neuropol.ttf | Bin 149752 -> 0 bytes next.png | Bin 3959 -> 0 bytes play.png | Bin 12399 -> 0 bytes stop.png | Bin 11879 -> 0 bytes test.wav | Bin 2682958 -> 0 bytes vhvyybbuh.py | 6 ++++++ 歌曲1.wav | Bin 2682958 -> 0 bytes 12 files changed, 13 insertions(+), 64 deletions(-) create mode 100644 HFYGY.py delete mode 100644 background.png delete mode 100644 last.png delete mode 100644 logo.png delete mode 100644 my_music.py delete mode 100644 neuropol.ttf delete mode 100644 next.png delete mode 100644 play.png delete mode 100644 stop.png delete mode 100644 test.wav create mode 100644 vhvyybbuh.py delete mode 100644 歌曲1.wav diff --git a/HFYGY.py b/HFYGY.py new file mode 100644 index 0000000..c9342d7 --- /dev/null +++ b/HFYGY.py @@ -0,0 +1,7 @@ +a=[43,25,34,23,54] +n=len(a) +for z in range(0,int(n)): + for i in range(0,int(n)): + if a[i] > a[i+1]: + a[i],a[i+1]=a[i+1],[i] +print(a) \ No newline at end of file diff --git a/background.png b/background.png deleted file mode 100644 index 4069672..0000000 Binary files a/background.png and /dev/null differ diff --git a/last.png b/last.png deleted file mode 100644 index 08c76a7..0000000 Binary files a/last.png and /dev/null differ diff --git a/logo.png b/logo.png deleted file mode 100644 index 0cd6875..0000000 Binary files a/logo.png and /dev/null differ diff --git a/my_music.py b/my_music.py deleted file mode 100644 index 1b2eac9..0000000 --- a/my_music.py +++ /dev/null @@ -1,64 +0,0 @@ -import pygame -from pygame import locals - -pygame.init() # 初始化 -# 创建窗口 -screen = pygame.display.set_mode((640, 480)) -# 载入图片、资源 -bg_img = pygame.image.load('background.png') # 背景图 -play_img = pygame.image.load('play.png') # 播放按钮 -stop_img = pygame.image.load('stop.png') # 暂停按钮 -last_img = pygame.image.load('last.png') # 上一曲按钮 -next_img = pygame.image.load('next.png') # 下一曲按钮 -logo_img = pygame.image.load('logo.png') # 下一曲按钮 - -# 载入音乐 -pygame.mixer.music.load('歌曲1.wav') # 载入音乐 - -volume = 0.2 -pygame.mixer.music.set_volume(volume) # 初始播放音量 -click = 0 -play_button = stop_img - -while True: - for event in pygame.event.get(): - if event.type == locals.QUIT: - exit() - # 按键,控制声音大小 - if event.type == locals.KEYDOWN: - if event.key == locals.K_UP: - volume += 0.1 - if volume > 1: - volume = 1 - pygame.mixer.music.set_volume(volume) - if event.key == locals.K_DOWN: - volume -= 0.1 - if volume < 0: - volume = 0 - pygame.mixer.music.set_volume(volume) - - # 按下鼠标 - if event.type == locals.MOUSEBUTTONDOWN: - if event.button == 1: - x,y = event.pos - if x > 270 and x <370 and y > 350 and y < 450: - # 次数增加 - click += 1 - if click % 2 == 0: - play_button = stop_img - pygame.mixer.music.unpause() - else: - play_button = play_img - pygame.mixer.music.pause() - - if pygame.mixer.music.get_busy() == False: - pygame.mixer.music.play() - - # 绘制画面 - screen.blit(bg_img, (0, 0)) # 填充背景 - screen.blit(play_button, (270, 330)) # 暂停按钮 - screen.blit(logo_img, (170, 60)) # 中间logo图 - screen.blit(last_img, (120, 350)) # 上一曲 - screen.blit(next_img, (420, 350)) # 下一曲 - # 刷新画面 - pygame.display.update() diff --git a/neuropol.ttf b/neuropol.ttf deleted file mode 100644 index ddefb40..0000000 Binary files a/neuropol.ttf and /dev/null differ diff --git a/next.png b/next.png deleted file mode 100644 index f61ab92..0000000 Binary files a/next.png and /dev/null differ diff --git a/play.png b/play.png deleted file mode 100644 index 878b690..0000000 Binary files a/play.png and /dev/null differ diff --git a/stop.png b/stop.png deleted file mode 100644 index 562a550..0000000 Binary files a/stop.png and /dev/null differ diff --git a/test.wav b/test.wav deleted file mode 100644 index a8ceb39..0000000 Binary files a/test.wav and /dev/null differ diff --git a/vhvyybbuh.py b/vhvyybbuh.py new file mode 100644 index 0000000..92515c0 --- /dev/null +++ b/vhvyybbuh.py @@ -0,0 +1,6 @@ +for a in range(1,1296): + b = a+4 + for c in range(1,1296-a-b): + d = c*4 + if (b-2 ==c*2) and (a+b+c+d == 1296): + print(a,b,c,d) \ No newline at end of file diff --git "a/\346\255\214\346\233\2621.wav" "b/\346\255\214\346\233\2621.wav" deleted file mode 100644 index a8ceb39..0000000 Binary files "a/\346\255\214\346\233\2621.wav" and /dev/null differ -- libgit2 0.25.0