用户:沈小虎查看:0 回复:2 评论:0 创建时间:2020-03-17T13:34:38
【作品展示】

【作品介绍】
# 沈博寅 版权所有# 逗比脸
shenboyinPython', '[版本2.0.2786.32]')
版权所有
2020 shenboyinPython
保留所有权利。
盗版必究。
等待三秒,
自动开始。
共5类代码。
约85行代码
【作品源代码】
import time
import turtle
__Pen = turtle.Pen()
# 沈博寅 版权所有
# 逗比脸
print('shenboyinPython', '[版本2.0.2786.32]')
time.sleep(1)
print('版权所有', '2020 shenboyinPython', '保留所有权利。')
time.sleep(1)
print('三秒后执行代码')
time.sleep(1)
print('二')
time.sleep(1)
print('一')
time.sleep(1)
print('开始执行代码')
# 接下来是代码环节
# 脸
__Pen.penup()
__Pen.goto((-210), 0)
__Pen.setheading((-90))
__Pen.pendown()
__Pen.pencolor('orange')
__Pen.pensize(4)
__Pen.begin_fill()
__Pen.circle(210, 360)
__Pen.fillcolor('yellow')
__Pen.end_fill()
__Pen.pencolor('black')
# 画嘴巴
__Pen.pensize(5)
__Pen.penup()
__Pen.goto((-150), (-30))
__Pen.pendown()
__Pen.setheading((-90))
__Pen.circle(150, 180)
# 左眼眶
__Pen.penup()
__Pen.pensize(4)
__Pen.goto((-180), 90)
__Pen.pendown()
__Pen.setheading(40)
__Pen.begin_fill()
__Pen.circle((-120), 80)
__Pen.penup()
__Pen.goto((-180), 90)
__Pen.setheading((-130))
__Pen.pendown()
__Pen.circle(15, 110)
__Pen.setheading(40)
__Pen.circle((-106), 83)
__Pen.setheading(30)
__Pen.circle(18, 105)
__Pen.fillcolor('white')
__Pen.end_fill()
# 右眼眶
__Pen.penup()
__Pen.goto(20, 90)
__Pen.pendown()
__Pen.setheading(40)
__Pen.begin_fill()
__Pen.circle((-120), 80)
__Pen.penup()
__Pen.goto(20, 90)
__Pen.pendown()
__Pen.setheading((-130))
__Pen.circle(15, 110)
__Pen.setheading(40)
__Pen.circle((-106), 83)
__Pen.setheading(30)
__Pen.circle(18, 105)
__Pen.fillcolor('white')
__Pen.end_fill()
# 画眼珠
__Pen.pensize(2)
__Pen.penup()
__Pen.goto(50, 95)
__Pen.pendown()
__Pen.begin_fill()
__Pen.circle(8, 360)
__Pen.fillcolor('black')
__Pen.end_fill()
__Pen.penup()
__Pen.goto((-150), 95)
__Pen.pendown()
__Pen.begin_fill()
__Pen.circle(8, 360)
__Pen.fillcolor('black')
__Pen.end_fill()
# the end
turtle.done()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn