04 2020 档案
求解一元二次方程
摘要:import math a=eval(input('输入 a:')) b=eval(input('输入b:')) c=eval(input(输入c:')) if a==0: if b==0: print("Data error!") else: sol=-c/b print('结果为{:.2f}'. 阅读全文
posted @ 2020-04-15 10:42 以晴 阅读(166) 评论(0) 推荐(0)
吐舌表情
摘要:import turtle as t t.fillcolor("yellow") t.begin_fill() t.pensize(3) t.circle(100) t.penup() t.left(125) t.fd(120) t.pendown() t.right(85) t.fd(30) t. 阅读全文
posted @ 2020-04-02 12:48 以晴 阅读(176) 评论(0) 推荐(0)
五角星
摘要:import turtle as t t.pensize(5) for i in range(5): t.fd(20) t.left(145) 阅读全文
posted @ 2020-04-01 23:00 以晴 阅读(51) 评论(0) 推荐(0)
两个五角星
摘要:import turtle as t t.pensize(5) for i in range(5): t.fd(100) t.left(145) t.seth(180) for c in range(5): t.fd(100) t.right(145) 阅读全文
posted @ 2020-04-01 22:59 以晴 阅读(156) 评论(0) 推荐(0)
六边形
摘要:import turtle as t t.pensize(3) for i in range(6): t,fd(12) t.left(60) 阅读全文
posted @ 2020-04-01 22:55 以晴 阅读(243) 评论(0) 推荐(0)
三角形
摘要:import turtle as t for i in range(3): t.fd(18) t.left(120) t.fd(9) t.left(60) for c in range(3): t.fd(9) t.left(120) 阅读全文
posted @ 2020-04-01 22:50 以晴 阅读(80) 评论(0) 推荐(0)