摘要: #计算公式:π/4=1-1/3+1/5-1/7+....... import math import time scale=100 #Π的精确读与scale的大小有关,越大越精确。 s,m,=1,2 total,s,n,t=0.0,1,1.0,1.0 print("执行开始".center(scal 阅读全文
posted @ 2020-03-18 20:57 心辰 阅读(290) 评论(0) 推荐(0)
摘要: import turtle radius = eval(input()) number = eval(input()) cl = input() turtle.pencolor(cl) turtle.goto(0,0) for i in range(number): turtle.circle(ra 阅读全文
posted @ 2020-03-12 12:36 心辰 阅读(223) 评论(0) 推荐(0)
摘要: #红色五角星 import turtle as t t.fillcolor("red") t.begin_fill() while True: t.fd(200) t.right(144) if abs(t.pos())<1: break t.end_fill() t.done() #六角形 imp 阅读全文
posted @ 2020-03-11 17:05 心辰 阅读(178) 评论(0) 推荐(0)