Commit c2b8c542 by BellCodeEditor

auto save

parent 4ce966e1
Showing with 63 additions and 0 deletions
# # 递归----解题的思路与方法
# # 递推----一步一步的去解决问题
# # 传递 回归 去 回 得出结果
# # 传递 推理 得出结果
# # 计算1-100之间所有数字之和
# # 1所有数字拿出来, 2累加
# # s=0
# # for i in range(1,101):
# # s=s+i
# # if a==1:
# # return 1
# # a=1
# # for i in range(9):
# # a=(a+1)*2
# # print(a)
# # def a(n):
# # if n==10:
# # return 1
# # s=(a(n+1)+1)*2
# # return s
# # print(a(1))
# # def a(n):
# # if n==1:
# # return 1
# # s=(a(n-1)+1)*2
# # return s
# # print(a(10))
# # def s(n):
# # if n==1 or n==2:
# # return 1
# # a=s(n-1)+s(n-2)
# # return a
# # print(s(3))
# # 爬楼梯 每次1-2-3
# # 爬10楼有几种方法。2 4 6 10 16 26
# # 111 12 21 3
# # 地推
# def a(n):
# if n==1:
# return 1
# if n==2:
# return 2
# s=a(n-1)+a(n-2)
# return s
# print(a(30))
import turtle
a=turtle.Pen()
a.speed(0)
#基础图形 不规则正方形
for i in range(1,100):
a.fd(i)
a.left(91)
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment