如何修复PyCharm中的“此代码无法访问”错误

问题描述

while True:

    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.quit()
            sys.exit()

ball.x += ball_speed_x #This line is unreachable

ball.y += ball_speed_y

在该行中键入什么都无所谓,所有内容均无法访问。如何解决

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)