摘要: N=eval(input()) for a in range(1,N+1): for b in range(2,a): for c in range(b,a): for d in range(c,a): if(pow(a,3)==pow(b,3)+pow(c,3)+pow(d,3)): print( 阅读全文
posted @ 2020-03-25 18:30 liuchun玲 阅读(125) 评论(0) 推荐(0) 编辑
摘要: import math import time scale=14 s,m,=1,2 print("执行开始".center(scale//2, "-")) start = time.perf_counter() for i in range(scale+1): s=math.sqrt((1-math 阅读全文
posted @ 2020-03-25 15:14 liuchun玲 阅读(87) 评论(0) 推荐(0) 编辑
摘要: import turtle for i in range(8): for j in range(8): turtle.forward(37.5) if j % 2 == 0: if i % 2 ==0: turtle.begin_fill() for s in range(4): turtle.le 阅读全文
posted @ 2020-03-25 13:56 liuchun玲 阅读(182) 评论(0) 推荐(0) 编辑
摘要: import turtle import time import random rand1=random.randint(1,200) turtle.fillcolor("black") turtle.begin_fill() turtle.circle(rand1,180) turtle.end_ 阅读全文
posted @ 2020-03-25 13:53 liuchun玲 阅读(146) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.pensize(10) turtle.color("blue") turtle.penup() turtle.goto(-110, -25) turtle.pendown() turtle.circle(45) turtle.color("black") t 阅读全文
posted @ 2020-03-25 13:52 liuchun玲 阅读(179) 评论(0) 推荐(0) 编辑
摘要: import turtle as t t.pencolor("red") t.fd(200) t.seth(120) t.fd(200) t.seth(-120) t.fd(200) t.seth(0) t.fd(100) t.seth(60) t.fd(100) t.seth(180) t.fd( 阅读全文
posted @ 2020-03-25 13:49 liuchun玲 阅读(129) 评论(0) 推荐(0) 编辑
摘要: import turtle number = int(input()) turtle.screensize(600,500,'white') turtle.pensize(3) turtle.pencolor('blue') turtle.fillcolor('yellow') turtle.beg 阅读全文
posted @ 2020-03-25 13:47 liuchun玲 阅读(110) 评论(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-25 13:45 liuchun玲 阅读(132) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.pensize(2 ) turtle.pencolor("break") turtle.fillcolor("red") turtle.begin_fil() for i in range(5): turtle.forward(100) turtle.rig 阅读全文
posted @ 2020-03-25 13:44 liuchun玲 阅读(110) 评论(0) 推荐(0) 编辑