原博文
2019-03-06 23:40 −
如何用Python绘制一朵太阳花 准备:1.Python3.6 2.win7 过程: 打开Python shell界面; 2.建立脚本 &...
相关推荐
2019-12-07 19:38 −
用python画简单的树
代码如下:
import turtle as T
import random
import time # 画樱花的躯干(60,t)
def Tree(branch, t): time.sleep(0.0005) if branch &...
2019-12-19 10:58 −
# 画图
蟒蛇绘制,和函数封装
去掉注释即可运行 ```python
# DrawPython '''
import turtle
# 绘制坐标系
turtle.setup(650,350,200,200)
画笔控制
turtle.penup()
# 向当前方向前进
turtle.fd(-250)
...
2019-12-19 08:38 −
最近翻到一篇知乎,上面有不少用Python(大多是turtle库)绘制的树图,感觉很漂亮,我整理了一下,挑了一些我觉得不错的代码分享给大家(这些我都测试过,确实可以生成喔~)one 樱花树
动态生成樱花效果图(这个是动态的):实现代码
import turtle as T
imp...
2019-12-21 20:13 −
打印出三位水仙花数方法及解释num = 100while num <= 999: #这里num 小于等于999 则运行 填1000也可以 a = num % 10 #num对10取余 b = num // 10 % 10 #num对10取整在取余 c = num // 100 ...
2019-12-14 14:52 −
% Day1 Solution
% Wearry
% Stay determined!
养花
考虑当 kkk 确定的时候如何求答案,
显然对于所有形如 [ak...
2019-12-11 20:26 −
from matplotlib.patches import Ellipse, Circle import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) ell1 = Ellipse(xy = (0....
2019-12-23 21:54 −
画一株美丽的樱花树
from turtle import *
from random import *
from math import * def tree(n,l): pd()#下笔 #阴影效果 t = cos(radians(heading()+45))/8+0.25 ...
0
3337