MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / main

Function main

tools/python-3.11.9-amd64/Lib/turtledemo/forest.py:84–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82
83# Hier 3 Baumgeneratoren:
84def main():
85 p = Turtle()
86 p.ht()
87 tracer(75,0)
88 u = doit1(6, Turtle(undobuffersize=1))
89 s = doit2(7, Turtle(undobuffersize=1))
90 t = doit3(5, Turtle(undobuffersize=1))
91 a = clock()
92 while True:
93 done = 0
94 for b in u,s,t:
95 try:
96 b.__next__()
97 except:
98 done += 1
99 if done == 3:
100 break
101
102 tracer(1,10)
103 b = clock()
104 return "runtime: %.2f sec." % (b-a)
105
106if __name__ == '__main__':
107 main()

Callers 1

forest.pyFile · 0.70

Calls 5

TurtleClass · 0.90
doit1Function · 0.85
doit2Function · 0.85
doit3Function · 0.85
__next__Method · 0.45

Tested by

no test coverage detected