-
Notifications
You must be signed in to change notification settings - Fork 0
/
534.py
36 lines (36 loc) · 804 Bytes
/
534.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
import easygui
import turtle
import math
import time
import datetime
l = easygui.ynbox('', 'Codemao', ('是', '否'))
k=False
f = 0
Pn = turtle.Pen()
Pen = turtle.Pen()
Pn.penup()
Pen.penup()
Pn.goto((-300), 0)
Pen.goto((-175), 75)
Pen.hideturtle()
Pn.shape('turtle')
if not l:
Pen.write('Turtle', font=('Arial', 108, 'italic'))
while True:
if k:
t = datetime.time.microsecond
f1 = ((f % 4) / 2)
f3 = ((f % 4) % 2)
F = f1**0.5 if f3==1 else(f1+2)**0.5
Pn.forward(1+F)
f += 1
if k:
m = datetime.time.microsecond
n=m-t
if l:
#print(f, " ", f1, " ", f3, " ", str(F)[:5],end=" ")
#print(str(1+F)[:5],)
Pen.clear()
Pen.write(str(1+F)[:5], font=('Arial', 108, 'italic'))
if k:
print(n.microsecond/1000)