-
Notifications
You must be signed in to change notification settings - Fork 0
/
coronavirus_statistic(test).py
54 lines (52 loc) · 1 KB
/
coronavirus_statistic(test).py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from tkinter import *
from random import *
import tkinter.messagebox
import time
import random
import turtle
from turtle import *
import winsound
from winsound import PlaySound,SND_ASYNC,Beep
import threading
from threading import Timer,Thread
from time import sleep
tre = 10
ert = 1
s = Screen()
t1 = Pen()
t1.pu()
while True:
x,y = t1.pos()
t = t1.clone()
t.goto(x+tre,y)
yt = randint(7,10)
if yt == 10:
t.color('yellow')
if yt == 7:
t.color('red')
x,y = t1.pos()
t = t1.clone()
t.goto(x-tre,y)
if yt == 10:
t.color('yellow')
if yt == 7:
t.color('red')
x,y = t1.pos()
t = t1.clone()
t.goto(x,y+tre)
yt = randint(7,10)
if yt == 10:
t.color('yellow')
if yt == 7:
t.color('red')
x,y = t1.pos()
t = t1.clone()
t.goto(x,y-tre)
yt = randint(7,10)
if yt == 10:
t.color('yellow')
if yt == 7:
t.color('red')
tre = tre+10
time.sleep(0.0000000001)
# t1.color('red')