python各种源码下载

大家好!我是你们博主小蓝,今天分享的是python各种各样的源码下载,在下面向大家介绍几种:
1.使用python画图的几种源码:
冰墩墩

import turtle

turtle.title(‘PythonBingDwenDwen’)

turtle.speed(100) # 速度

左手

turtle.penup()
turtle.goto(177, 112)
turtle.pencolor(“lightgray”)
turtle.pensize(3)
turtle.fillcolor(“white”)
turtle.begin_fill()
turtle.pendown()
turtle.setheading(80)
turtle.circle(-45, 200)
turtle.circle(-300, 23)
turtle.end_fill()

左手内

turtle.penup()
turtle.goto(182, 95)
turtle.pencolor(“black”)
turtle.pensize(1)
turtle.fillcolor(“black”)
turtle.begin_fill()
turtle.setheading(95)
turtle.pendown()
turtle.circle(-37, 160)
turtle.circle(-20, 50)
turtle.circle(-200, 30)
turtle.end_fill()

轮廓

头顶

turtle.penup()
turtle.goto(-73, 230)

玫瑰花

import turtle

设置初始位置

turtle.penup()
turtle.left(90)
turtle.fd(200)
turtle.pendown()
turtle.right(90)

花蕊

turtle.fillcolor(“red”)
turtle.begin_fill()
turtle.circle(10, 180)
turtle.circle(25, 110)
turtle.left(50)
turtle.circle(60, 45)
turtle.circle(20, 170)
turtle.right(24)
turtle.fd(30)
turtle.left(10)
turtle.circle(30, 110)
turtle.fd(20)
turtle.left(40)
turtle.circle(90, 70)
turtle.circle(30, 150)
turtle.right(30)
turtle.fd(15)
turtle.circle(80, 90)
turtle.left(15)
turtle.fd(45)
turtle.right(165)
turtle.fd(20)
turtle.left(155)
turtle.circle(150, 80)
turtle.left(50)
turtle.circle(150, 90)
turtle.end_fill()

花瓣1

turtle.left(150)
turtle.circle(-90, 70)
turtle.left(20)
turtle.circle(75, 105)
turtle.setheading(60)
turtle.circle(80, 98)
turtle.circle(-90, 40)

花瓣2

turtle.left(180)
turtle.circle(90, 40)
turtle.circle(-80, 98)
turtle.setheading(-83)

叶子1

turtle.fd(30)
turtle.left(90)
turtle.fd(25)
turtle.left(45)
turtle.fillcolor(“green”)
turtle.begin_fill()

各种图案

下载链接:链接:https://pan.baidu.com/s/1Ggaf0PMNg-CyIgnBr9d8EA 提取码:k60n
下载其他相关资料:https://v1.zhiyunka.com/links/1B8AC91C

你可能感兴趣的:(python,源码软件)