大白圣诞节祝福

圣诞节大白祝福程序

我想和你一起去程序中度假,让我们感受工科生的浪漫哦。
最好的爱情大概就是这样,你陪我走过一无所有,我陪你走到岁月尽头。

程序代码如下

import turtle as m
import time
# 初始化画布
m.setup(width=800, height=600)
time.sleep(1)
m.hideturtle()
m.penup()
m.goto(-300,220)
color=['yellow','red','blue']
words1 = '当 '
words2 = ['送','给','小','朋','友']  #可以修改送的人的名字
for i in range(3):
    m.pencolor(color[i])
    m.write(words1, font=("华文彩云", 4*i+14, "bold"))
    m.fd(20+3*i)
    time.sleep(0.1)
    m.fd(8)
m.write("!", font=("华文彩云", 23, "bold"))
m.fd(20)
for word in words2:
    m.pencolor(color[1])
    m.write(word, font=("华文彩云", 26, "bold"))
    m.fd(35)
    time.sleep(0.4)
m.write(":", font=("华文彩云", 23, "bold"))
m.fd(35)
#大白的头
m.goto(-100,150)
m.rt(90)
m.color("black")
m.pensize(1)
m.pd()
size = 0.6
a = 0.8*size
for i in range(120):
    if 0<=i<30 or 60<=i<90:
        a = a+0.2*size
        m.left(3) # 向左转3度
        m.fd(a) # 向前走a的步长
    else:
        a = a-0.2*size
        m.left(3)
        m.fd(a)
m.penup()
#眼睛
m.goto(-70,150)
m.dot(14)
time.sleep(0.1)
m.goto(-24,150)
m.dot(14)
m.rt(60)
m.pd()
m.speed(0)
m.circle(-50,50)

#身体

m.penup()
m.goto(-89.85,131.47)
m.left(65)
m.pd()
m.circle(250,60)
m.penup()
m.goto(-2.64,133.09)
m.left(30)
m.pd()
m.circle(-250,60)
m.rt(20)
m.circle(-134,110)

#腿
m.penup()
m.left(135)
m.goto(-120,-145)
m.pd()
m.circle(120,45)
m.left(15)
m.circle(42,80)
m.left(50)
m.fd(70)
m.penup()
m.back(70)
m.pd()
m.rt(130)
m.circle(42,80)
m.left(15)
m.circle(115,48)
m.penup()

#胳膊

m.goto(-125,89)
m.pd()
m.left(112)
m.circle(250,50)
m.circle(50,45)
m.circle(20,80)
m.circle(50,45)
m.circle(180,16)

m.penup()
m.goto(31,90)
m.pd()
m.rt(126)
m.circle(-250,50)
m.circle(-50,45)
m.circle(-20,80)
m.circle(-50,45)
m.circle(-180,14)

#手

m.penup()
m.goto(-208,-90)
m.pd()
m.left(150)
m.rt(180)
m.circle(-30,20)
m.penup()
m.goto(-208,-90)
m.rt(160)
m.pd()
m.circle(30,40)
m.circle(5,120)
m.circle(40,40)

#画玫瑰

m.penup()
m.goto(-270,60)
m.pd()
m.rt(60)
size=0.35
# 花蕊
m.fillcolor("#EE0000")
m.begin_fill()
m.circle(10*size, 180)
m.circle(25*size, 110)
m.left(50)
m.circle(60*size, 45)
m.circle(20*size, 170)
m.rt(24)
m.fd(30*size)
m.left(10)
m.circle(30*size, 110)
m.fd(20*size)
m.left(40)
m.circle(90*size, 70)
m.circle(30*size, 150)
m.rt(30)
m.fd(15*size)
m.circle(80*size, 90)
m.left(15)
m.fd(45*size)
m.rt(165)
m.fd(20*size)
m.left(155)
m.circle(150*size, 80)
m.left(50)
m.circle(150*size, 90)
m.end_fill()

# 花瓣1
m.left(150)
m.circle(-90*size, 70)
m.left(20)
m.circle(75*size, 105)
m.setheading(80)
m.circle(80*size, 98)
m.circle(-90*size, 40)
# 花瓣2
m.left(180)
m.circle(90*size, 40)
m.circle(-80*size, 98)
m.setheading(-63.5)
# 叶子1
m.fd(30*size)
m.left(90)
m.fd(25*size)
m.left(45)
m.fillcolor("#00CD00")
m.begin_fill()
m.circle(-80*size, 90)
m.rt(90)
m.circle(-80*size, 90)
m.end_fill()
m.rt(135)
m.fd(60*size)
m.left(180)
m.penup()
m.fd(85*size)
m.pd()
m.left(90)
m.fd(80*size)
# 叶子2
m.rt(90)
m.rt(45)
m.fillcolor("#00CD00")
m.begin_fill()
m.circle(80*size, 90)
m.left(90)
m.circle(80*size, 90)
m.end_fill()
m.left(135)
m.fd(60*size)
m.left(180)
m.fd(60*size)
m.rt(90)
m.circle(-1000*size,8.6)
m.penup()
m.goto(-200,-110)
m.pd()
m.circle(-1000*size,10)
#圣诞快乐
words3 = ['圣 ','诞 ','快 ','乐 ','呦 ','!'] #可以修改祝福语
m.penup()
m.color("#FF6A6A")
m.goto(30,220)
m.setheading(0)
for word in words3:
    m.write(word, font=("华文彩云", 30, "bold"))
    m.fd(35)
    time.sleep(0.4)
m.done()

喜欢的话,可以关注一下哦!

圣诞节 祝福网站 全部源码 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!--design by www.618cc.com--> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>圣诞节祝福! 西安工程大学艺纺论坛</title> <style type="text/css"> <!-- body { margin: 0px; padding:0px; background:url(img/bbgg.jpg) repeat-x; } img {border:none;} form { padding:0; margin:0} a:link { color: #FF3366; text-decoration: none; } a:visited { text-decoration: none; color: #FF3366; } a:hover { text-decoration: underline; color: #999999; } a:active { text-decoration: none; } .STYLE1 {color: #003366} --> </style> <script> function click() { if (event.button==2) { alert('艺纺论坛祝大家梦想成真!www.efangbbs.com ') } } document.onmousedown=click </script> <SCRIPT> <!-- var lusername =location.search.split("=")[1]; if(!lusername){ lusername="艺纺论坛"; } else{ lusername=unescape(lusername); } function check(obj){ if (obj.stra.value.length>28) { alert('晕,咋还有这么长啊?~'); return false; } if (obj.stra.value.length==0) { alert('还没填姓名呀'); return false; } var url ="http://"+location.host+location.pathname+"?stra="+escape(obj.stra.value); window.clipboardData.setData("Text",url); alert('网址已生成并替您复制好了,直接按 Ctrl+V 粘贴到QQ / MSN等即时通信工具或邮箱就可以了!'); window.location.replace(url); return false; } --> </SCRIPT> <!--SCRIPT language=JavaScript src="snow.js"></SCRIPT--> <BGSOUND loop=infinite src="jinbells.mid" tppabs="jinbells.mid"> </head> <body> <div style="width:1000px; margin:0 auto; height:auto"> <div style="height:626px;"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="height:626px; width:104px;" rowspan="2"><img src="img/01.jpg" width="104" height="626" /></td> <td valign="top" style="height:350px; width:792px; background:url(img/001.gif) no-repeat"> <div style="padding-left:95px; padding-top:190px; font-weight:bold; font-size:30px; color:#CC3366; font-family:"黑体";">亲爱的:<font color="#1E9AFF"><SCRIPT> var b=document;var c=lusername;b.write(c); </SCRIPT></font></div> </td> <td style="height:626px; width:104px;" rowspan="2"><img src="img/003.jpg" width="104" height="626" /></td> </tr> <tr> <td valign="top" style="height:276px; width:792px; background:url(img/002.jpg) no-repeat"> <div style="padding-left:180px; padding-top:230px; font-weight:bold; font-size:14px; color:#CC3366;">亲爱的:<SCRIPT> var b=document;var c=lusername;b.write(c); </SCRIPT>,圣诞快乐!</div> </td> </tr> </table> </div> <div style="background:url(img/bg.gif) repeat-y; height:auto; text-align:center; padding-top:20px;"><img src="img/004.gif" /></div> <div style="background:url(img/bg.gif) repeat-y; height:auto; text-align:center; padding-top:25px;"><img src="img/005.gif" /></div> <div style=" background:url(img/006.gif) no-repeat; height:343px;"> <div style="padding-left:250px; padding-top:60px; font-weight:bold; line-height:18px; font-size:12px; color:#CC3366;">圣诞节快要到了,赶快在第一时间给你的朋友们送上你的祝福吧,<br /> 他们一定会很惊喜的!在下面填入你朋友的姓名,点击获得祝福网页,<br /> 就可以得到一个属于你的祝福网页,里面就是你朋友的名字哦!<br /> 赶紧发送给他们让他们得到一个意想不到的惊喜吧! <br /> <form name="newinfo_form" id="newinfo_form" onSubmit="return check(this)"> <strong><font color=red>在此输入您要祝福人的姓名:</font></strong> <input name="stra" type="text" id="stra" tabindex="1" value="" size="16" style="width:100px;">   <input type="submit" value="点此提交" name="Submit" /> </form></div> <div style="padding-right:120px; padding-top:80px; font-size:12px; text-align:right; color:#CC3366;">你可以直接发送网址:http://www.efangbbs.com/happy/?stra=<span class="STYLE1">###</span> 给你朋友 (把<span class="STYLE1">###</span>替换成你朋友名字即可)<br /> <br /> <br /> <br /> <br /> <br /> 创意支持:<a href="http://www.efangbbs.com" target="_blank">西安工程大学艺纺论坛</a> <a href="http://www.mutoulee.cn" target="_blank">体无完肤</a><br /> </div> </div> </div> <div style="position:absolute; left:0px; top:0px; z-index:99; height:auto"><script type="text/javascript"> var swf_width=1000; var swf_height=1100; swf_width=document.documentElement.clientWidth; document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ swf_width +'" height="'+ swf_height +'">'); document.write('<param name="movie" value="http://www.wzfzl.cn/flash/01/23.swf"><param name="quality" value="high">'); document.write('<param name="wmode" value="transparent">'); document.write('<embed src="http://www.wzfzl.cn/flash/01/23.swf" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>'); </script></div> </body> </html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小程同学>o<

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值