新手刚学Python,用海龟画了科比的logo。
感兴趣的话可以运行看看!

import turtleturtle.hideturtle()
turtle.penup()
turtle.width(2)
turtle.goto(-200,0)
turtle.color("gold")
#科比logoturtle.goto(-204,-12)
turtle.begin_fill()
turtle.fillcolor("purple")
turtle.pendown()
turtle.right(90)
turtle.forward(160)
turtle.right(128)
turtle.forward(20)
turtle.right(45)
turtle.forward(112)
turtle.goto(-204,-12)
turtle.end_fill()turtle.penup()
turtle.goto(-204,0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("purple")
turtle.setheading(155)
turtle.forward(112)
turtle.left(133)
turtle.forward(32)
turtle.left(30)
turtle.forward(68)
turtle.goto(-204,0)
turtle.end_fill()turtle.penup()
turtle.goto(-204,8)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("purple")
turtle.setheading(90)
turtle.forward(32)
turtle.left(67)
turtle.forward(80)
turtle.left(42)
turtle.forward(28)
turtle.goto(-204,8)
turtle.end_fill()turtle.penup()
turtle.goto(-196,-12)
turtle.begin_fill()
turtle.fillcolor("purple")
turtle.pendown()
turtle.setheading(270)
turtle.forward(160)
turtle.left(128)
turtle.forward(20)
turtle.left(45)
turtle.forward(112)
turtle.goto(-196,-12)
turtle.end_fill()turtle.penup()
turtle.goto(-196,0)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("purple")
turtle.setheading(25)
turtle.forward(112)
turtle.right(133)
turtle.forward(32)
turtle.right(30)
turtle.forward(68)
turtle.goto(-196,0)
turtle.end_fill()turtle.penup()
turtle.goto(-196,8)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("purple")
turtle.setheading(90)
turtle.forward(32)
turtle.right(67)
turtle.forward(80)
turtle.right(42)
turtle.forward(28)
turtle.goto(-196,8)
turtle.end_fill()

用Python海龟画科比LOGO相关推荐

  1. 用Python海龟画图画哆啦A梦

    文章目录 前言 一.画哆啦A梦脸的外圈蓝色 二.画哆啦A梦脸的内圈白色 三.哆啦A梦的鼻子 四.哆啦A梦的鼻尖 五.哆啦A梦的左眼 六.哆啦A梦的右眼 七.哆啦A梦的左眼内部 八.哆啦A梦的右眼内部 ...

  2. python画小猪乔治动画片全集_使用Python海龟画粉红小猪

    儿子很喜欢看小猪佩奇,每天都要吆喝几声乔治,乔治,意思就是要看会电视里的小猪佩奇了.于是想到曾看到的用Python海龟模块画的粉红小猪佩奇,于是拿过来稍作整理,跑了一下,恩,效果还真是不错..向原作者 ...

  3. python海龟画柱体

    海龟画柱体 x = int(input("请输入柱体长:")) y = int(input("请输入柱体宽:")) z = int(input("请输 ...

  4. python海龟画小猪佩奇_python海龟作图20秒完成小猪佩奇,附源码!

    Python(发音:英[?pa?θ?n],美[?pa?θɑ:n]),是一种面向对象.直译式电脑编程语言,也是一种功能强大的通用型语言,已经具有近二十年的发展历史,成熟且稳定.它包含了一组完善而且容易理 ...

  5. 怎么用python海龟画五角星_海龟编辑器五角星怎么画 绘制五角星就是这么简单...

    海龟编辑器作为一款面向少儿的Python编辑器,它可以让孩子通过图形化的方式学习Python,很多用户在刚开始使用时不知道怎么绘制最基本的图形,小编将绘制五角星的方式通过两种方法进行讲解,想知道的赶快 ...

  6. python海龟画小猪佩奇动画片全集_用python画个小猪佩奇

    突发奇想,拿python画个小猪佩奇,大家可以运行着玩玩 draw.py # -*- coding:utf-8 -*- from turtle import * def nose(x,y):#鼻子 p ...

  7. Python海龟画个桃子

    from turtle import * from time import * color("red") speed(0)#画笔速率调零 hideturtle()#隐藏海龟 tra ...

  8. python海龟画哆啦a梦_python 海龟绘图画哆啦A梦

    import turtle as t #定位 def my_goto(x,y): t.up() t.goto(x,y) t.down() #眼睛 def eyes(): t.tracer(False) ...

  9. 用海龟画安卓logo.

    import turtle def head():r=100turtle.penup()turtle.sety(100)turtle.setx(-100)##开始画半圆turtle.pendown() ...

  10. python海龟画图画数轴_在python中使用matplotlib绘制对数轴

    我想使用matplotlib绘制一个对数轴的图形. 我一直在阅读文档,但无法弄清楚语法. 我知道在绘图参数中可能很简单,例如'scale=linear' ,但我似乎无法正确理解 示例程序: impor ...

最新文章

  1. 因果关系:真的存在吗?
  2. oracle test就死,简单说明Oracle数据库中对死锁的查询及解决方法
  3. P3306-[SDOI2013]随机数生成器【BSGS】
  4. MATLAB案例学习-基于雷达和摄像头的传感器融合
  5. leetcode59题:滑动窗口的最大值(用双端队列实现)
  6. 51单片机4位数乘法C语言,51单片机实现4位数以内的加减法
  7. Linux工作笔记030---Centos7.3启动tomcat 输入startup.sh后提示command not found
  8. ThinkCMF变量输出+使用函数
  9. 由sock引起的感想
  10. 正反馈理论与管理学——马太效应、比…
  11. GIS - 百度地图 城市中心点坐标
  12. Linux-CentOS7安装教程【附CentOS7镜像】
  13. 【网络安全】加解密算法最详解
  14. Mac上Java环境变量配置_飘云羽逸_新浪博客
  15. 华为交换机Hybrid接口
  16. 基于Caret和RandomForest包进行随机森林分析的一般步骤 (1)
  17. 1076 Forwards on Weibo (30 分)
  18. 【经验分享】尝试将 SCRIPT xxx 作为函数执行:出错
  19. 从信息流到搜索,今日头条要跨越几重山?
  20. 微软什么时候停止对win7进行服务器,微软官方通告:2020年1月24日起停止对windows7的技术支持...

热门文章

  1. 基于深度信念网络的表示学习用于lncrna -疾病关联预测
  2. Oracle analytics server(OAS) 支持 mysql 社区版配置
  3. strut-控制器ActionServlet类详解
  4. 使用BootStrap.编写网页
  5. 用Python下载学习通课程首页的资料
  6. python矩阵教程_Python Numpy Tutorial / Python Numpy 教程 (矩阵和图像操作)
  7. oppoa9处理器怎么样_oppoa91参数处理器怎么样
  8. IDEA补丁破解使用方法
  9. C语言日期计算器vs2022
  10. sparkSQL写入hive报错:Exception thrown when executing query