我正在尝试结束我的程序,但我不知道该怎么做

问题描述

我试图破解代码,但它对我不起作用。

如果有人知道如何破解,如果你能帮助我,我将非常感谢。

for n in range(50):
    x = randint(-200,200)
    y = randint(-200,200)
    beglys.penup()
    beglys.clear()
    beglys.goto(x,y)
    time.sleep(1)

解决方法

 for n in range(50):
        x = randint(-200,200)
        y = randint(-200,200)
        beglys.penup()
        beglys.clear()
        beglys.goto(x,y)
        time.sleep(1)
        if x:#Set on x your break condition
            break