双鱼图,,#!/usr/bin/e
文章由Byrx.net分享于2019-03-23 06:03:19
双鱼图,,#!/usr/bin/e
#!/usr/bin/env python3""" turtle-example-suite: tdemo_yinyang.pyAnother drawing suitable as a beginner'sprogramming example.The small circles are drawn by the circlecommand."""from turtle import *def yin(radius, color1, color2): width(3) color("black", color1) begin_fill() circle(radius/2., 180) circle(radius, 180) left(180) circle(-radius/2., 180) end_fill() left(90) up() forward(radius*0.35) right(90) down() color(color1, color2) begin_fill() circle(radius*0.15) end_fill() left(90) up() backward(radius*0.35) down() left(90)def main(): reset() yin(200, "black", "white") yin(200, "white", "black") ht() return "Done!"if __name__ == '__main__': main() mainloop()
相关内容
- Macbook pro + pycharm 不能导入包,macbookpycharm,新入手了ma
- python定时器爬取豆瓣音乐Top榜歌名,python定时器,作者
- Python创建Windows 服务,python创建windows,Python 写wind
- urllib2下载文件,,#!/usr/bin/p
- 画折线图的程序,画折线图程序,#_*_coding:u
- python 去除html标签的代码,python去除html标签,#! /usr/bin
- python模拟按键,自动翻页看u17漫画,pythonu17,#-*- coding
- 地月关系统模拟图示,月关模拟图示,#!/usr/bin/e
- 蒙提霍尔问题,蒙提霍尔,#coding: utf
- python通过pil生成缩略图的简单代码,pythonpil,python通过
评论关闭