|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
import pygame
import 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'
|
|