Commit 6f5564ec by BellCodeEditor

save project

parent f6bc2eac
Showing with 27 additions and 10 deletions
if player==computer:
print("平局")
elif playyer=="石头"and computer=="剪刀"
elif player=="剪刀"and computer=="布"
print("恭喜,你赢了)
elif player==""and computer=="石头":
print("恭喜你,你赢了")
else:
print("很遗憾,你输了")
\ No newline at end of file
import pygame
from pygame import locals
pygame.init()
screen = pygame.display.set_mode((640,480))
bg_img = pygame.image.load('background.png')
piay_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')
while true:
for event in pygame.event.get():
if nevent.type == locals.QUIT:
exit()
screen.blit(bg_img,(0,0))
screen.blit(bg_img,(270,330))
screen.blit(bg_img,(170,60))
screen.blit(bg_img,(120,350))
screen.blit(bg_img,(420,350))
pygame.display.update()
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