Commit ad38ee6b by BellCodeEditor

save project

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