百事可乐乐乐

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2020年4月14日

摘要: count = 0 def hanoi(n, src, dst, mid): global count if n == 1: print("{}:{}->{}".format(1,src,dst)) count += 1 else : hanoi(n-1, src, mid, dst) print( 阅读全文
posted @ 2020-04-14 20:00 煎饼果子* 阅读(134) 评论(0) 推荐(0)

摘要: from math import* from time import* scale=15 p=1 q=2 print("执行开始".center(scale//2, "-")) start = perf_counter() for i in range(scale+1): p=sqrt((1-sqr 阅读全文
posted @ 2020-04-14 19:58 煎饼果子* 阅读(121) 评论(0) 推荐(0)

摘要: import turtle as t t.left(60) for i in range(3): t.fd(100) t.right(120) t.fd(50) t.right(60) for i in range(3): t.fd(50) t.right(120) t.done() 阅读全文
posted @ 2020-04-14 19:56 煎饼果子* 阅读(184) 评论(0) 推荐(0)

摘要: import turtle as t t.seth(30) t.fd(100) t.seth(-90) t.fd(100) t.seth(150) t.fd(100) t.seth(30) t.fd(100/3) t.seth(90) t.fd(100/3) t.seth(-30) t.fd(100 阅读全文
posted @ 2020-04-14 19:47 煎饼果子* 阅读(209) 评论(0) 推荐(0)

摘要: import turtle as t t.pencolor('red') for i in range(5): t.forward(100) t.right(144) 阅读全文
posted @ 2020-04-14 19:12 煎饼果子* 阅读(173) 评论(0) 推荐(0)