Commit 477df164 by BellCodeEditor

auto save

parent 25ddcacf
Showing with 41 additions and 2 deletions
import turtle
turtle.pu()
turtle.goto(0,-110)
turtle.pd()
turtle.fd(100)
for i in range(3):
turtle.left(90)
turtle.fd(200)
turtle.left(90)
turtle.fd(100)
turtle.fillcolor('red')
turtle.pu()
turtle.begin_fill()
turtle.goto(0,-10)
turtle.pd()
turtle.circle(10)
turtle.end_fill()
turtle.pu()
turtle.begin_fill()
turtle.goto(-40,-10)
turtle.pd()
turtle.circle(10)
turtle.end_fill()
turtle.pu()
turtle.begin_fill()
turtle.goto(40,-10)
turtle.pd()
turtle.circle(10)
turtle.end_fill()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
File added
import pygame
from pygame import locals
click=0
pygame.init() # 初始化
# 创建窗口
screen = pygame.display.set_mode((640, 480))
......@@ -12,7 +14,9 @@ last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 中间logo
pygame.mixer.music.load('歌曲3.wav')
#pygame.mixer.music.load('歌曲3.wav')
ml=['歌曲1']
v=0.2
pygame.mixer.music.set_volume(v)
......@@ -32,7 +36,10 @@ while True:
pygame.mixer.music.set_volume(v)
if pygame.mixer.music.get_busy()==False:
pygame.mixer.music.play()
if pygame.MOUSEBUTTONDOWN:
click+=1
if click%2==1:
pygame.mixer.music.
# 绘制画面
screen.blit(bg_img, (0, 0)) # 填充背景
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment