用户:CHN_流星查看:1 回复:2 评论:1 创建时间:2020-10-26T22:10:19
请大神指点以下代码中的错误:
import pgzrun
WIDTH=310
HEIGHT=450
score=0
button=Actor("button1_n")
button.pos=WIDTH /2,HEIGHT/2+60
def draw():
screen.fill("lightbule")
button.draw()
screen.draw.taxt("Score:"+str(score),color="write",
center=(WIDTH/2,90),fontsize=50")
pgzrun.go()
很急,在线求!!!
柒_killer我这里只能给你改一个地方 后面的我还得自己研究一下才能帮你 你这个代码 我不知道这个有没有多一个括号 你自己看着改一改吧
center = (WIDTH/2,90),fotsize=50)点赞0
评论
import pgzrun
WIDTH = 310
HEIGHT = 450
score = 0
button = Actor("button1_n")
button.pos = WIDTH / 2, HEIGHT / 2 + 60
def draw():
screen.fill("lightbule")
button.draw()
screen.draw.taxt("Score:" + str(score),
color="write",
center=(WIDTH / 2, 90),
fontsize=50)
pgzrun.go()
fontsize=50多了引号
button1_n要放在./images/下
点赞0
评论