Windows Defender阻止我的愚蠢程序

时间:2019-12-31 03:49:29

标签: python

您好,我不知道,但是Windows Defender正在标记我的程序,但是代码中没有任何内容可以对其进行设置。反正有阻止这个的吗?难道这是乌龟,因为它正在制造屏幕吗?还是因为随机数?

import time
import random
import turtle

def click(x,y):
   player.penup()

    x = random.randint(-200, 200)

    y = random.randint(-250, 200)

    player.hideturtle()

    player.setpos(int(x), int(y))

    player.showturtle()

def stop():
   exit()


# The Screen
Screen = turtle.Screen()
Screen.bgcolor('black')
Screen.setup(900,900)
Screen.title('Triangle Game')


# Border Line
bl = turtle.Turtle()
bl.color('white')
bl.speed(9000)
bl.penup()
bl.setposition(-250, -250)
bl.pendown()
for i in range(4):
    bl.forward(500)
    bl.left(90)
    bl.hideturtle()

# Player Thing

player = turtle.Turtle()
player.shape('triangle')
player.color('white')


# click the player
player.onclick(click)


# Short Cut Keys
turtle.listen()
turtle.onkey(stop, 'e')

 Screen.mainloop()

1 个答案:

答案 0 :(得分:0)

是的,我遇到了类似的问题,并添加了以下例外:

转到“开始”>“设置”>“更新和安全性”>“ Windows安全性”>“病毒和威胁防护”。在“病毒和威胁防护设置”下,选择“管理设置”,然后在“排除项”下,选择“添加或删除排除项”。

我们可以使用virustotal网站分析可能的原因。

希望这会有所帮助。