From f913560ce694e97765da05a212c7cba12922ddfe Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 21 Dec 2024 09:51:36 +0800 Subject: [PATCH] save project --- p.py | 8 +++++--- t.py | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 t.py 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 -- libgit2 0.25.0