Pengjun's profile上善若水PhotosBlogLists Tools Help

Blog


    September 25

    黄金分割

    Fibonacci 数列计算黄金分割 : 1, 1, 2, 3, 5,8,13,21 ... ...

    x = 2
    y = 3.0

    while y < 10000 :
    print x/y
    x ,y = y, x+y