混沌法画蕨型绿叶

python turtle 混沌法画蕨型绿叶

python turtle 混沌法画蕨型绿叶

"""
   混沌法画蕨型绿叶
"""

import turtle
import random

screen = turtle.Screen()
screen.title('混沌法画蕨型绿叶')
screen.setup(1000,800)
screen.setworldcoordinates(-6,-1,6,11)
screen.tracer(0,0)
turtle.hideturtle()
turtle.speed(0)
turtle.up()

n = 1000000                # 总共要打的点数
p = (0,0)                  # 初始
t = turtle
for i in range(n):         # 迭代i 

You must log in to read the rest of this article. Please log in or register as a user.