Commit ad38ee6b by BellCodeEditor

save project

parent b8bab2e6
Showing with 15 additions and 7 deletions
tuplel = (100,200)
x,y,z = tuplel
print('x的值是:',x)
print('y的值是:',y)
\ No newline at end of file
...@@ -35,13 +35,16 @@ while True: ...@@ -35,13 +35,16 @@ while True:
a =0 a =0
if event.type == locals.MOUSEBUTTONDOWN: if event.type == locals.MOUSEBUTTONDOWN:
tick +=1 if event.button == 1:
if tick % 2 == 1: x,y = event.pos
pygame.mixer.music.pause() if x > 270 and x < 370 and y > 330 and y < 430:
b = play_img tick +=1
else: if tick % 2 == 1:
pygame.mixer.music.unpause() pygame.mixer.music.pause()
b= stop_img b = play_img
else:
pygame.mixer.music.unpause()
b= stop_img
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
pygame.mixer.music.play() pygame.mixer.music.play()
......
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