diff --git a/p.py b/p.py index 0a81cfc..1d3b8fa 100644 --- a/p.py +++ b/p.py @@ -1,9 +1,11 @@ import pygame from pygame import locals + pygame.init() -breakground = pygame.import.load("bg.png") -right = pygame.impor.load('right.png') -food = pygame.impor.load('apple.png') +background = pygame.image.load("bg.png") +right = pygame.image.load('right.png') +food = pygame.image.load('apple.png') + screen=pygame.display.set_mode((660,480)) while True: for event in pygame.event.get(): diff --git a/t.py b/t.py new file mode 100644 index 0000000..2f51131 --- /dev/null +++ b/t.py @@ -0,0 +1,4 @@ +file=open(r'C:\Users\makcoo\Desktop\text.txt','w',encoding='utf-8') +#file.write('学校放寒假!!!') +file.write('小强') +file.close() \ No newline at end of file