Commit 51ab9fe6 by BellCodeEditor

auto save

parent f64eebfb
import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((640,480))
background=pygame.image.load("bg.png")
apple=pygame.image.load("apple.png")
while True:
for event in pygame.event.get():
print(event)
if event.type==locals.QUIT:
exit()
screen.blit(background,(0,0))
screen.blit(apple,(610,0))
screen.blit(apple,(0,450))
screen.blit(apple,(0,0))
screen.blit(apple,(610,450))
pygame.display.update()
\ No newline at end of file
apple.png

2.05 KB

bg.png

22.5 KB

body.png

1.4 KB

down.png

2.01 KB

left.png

2.07 KB

File added
right.png

2.05 KB

up.png

2.05 KB

a=input("今天是星期几?")
if a=="星期一":
print("今天学钢琴")
elif a=="星期三":
print("今天学编程")
elif a=="星期六":
print("今天学英语")
else:
print("今天学国学")
\ No newline at end of file
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