大佬们这个报错要怎解决
import pygameimport sys
pygame.init()
position=0
position1=1
screen=pygame.display.set_mode((600,706))
turtle=pygame.image.load("D:\编程\图片\黑猫 - 副本 - 副本.png").convert_alpha()
font=pygame.font.Font(None,90)
r_line=font.get_linesize()
w_rect=turtle.get_rect()
position3=(0,0)
with open("kk.txt", "r",encoding="utf-8") as f:
f.reed()
while True:
for i in pygame.event.get():
if i.type==pygame.QUIT:
sys.exit()
for j in range(w_rect.width):
for y in range(w_rect.height):
tep=(j,y)
temp=turtle.get_at(tep)
screen.fill("white")
screen.blit(turtle,position3)
pygame.display.flip()
pygame.time.delay(20)
报出错误:
Traceback (most recent call last):
File "D:\PycharmProjects\cfdhwdj.py", line 16, in <module>
f.reed()
AttributeError: '_io.TextIOWrapper' object has no attribute 'reed'
f.read() 逃兵 发表于 2021-9-6 08:37
f.read()
{:10_250:} {:5_105:}
页:
[1]