gpt4 book ai didi

python - unident 不匹配任何外部缩进级别,我需要更改什么?

转载 作者:太空宇宙 更新时间:2023-11-04 10:47:46 26 4
gpt4 key购买 nike

<分区>

def update(self):
# Get the current mouse position. This returns the position
# as a list of two numbers
pos = pygame.mouse.get_pos()

# Fetch the x and y out of the list,
# just like we'd fetch letters out of a string.
# Set the player object to the mouse location
self.circ.x=pos[0]
self.circ.y=pos[1]

初始化Pygame

在 self.circ.x=pos[0] 的位置似乎有一个不明确的/缩进错误,我是 python 的新手,想知道哪里出了问题?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com