晚上自習(xí)無聊
在昌邑等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站設(shè)計(jì)、成都網(wǎng)站制作 網(wǎng)站設(shè)計(jì)制作定制網(wǎng)站制作,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站建設(shè),成都營銷網(wǎng)站建設(shè),成都外貿(mào)網(wǎng)站建設(shè),昌邑網(wǎng)站建設(shè)費(fèi)用合理。正好拿自己的平板電腦用python寫了個(gè)小程序,運(yùn)用turtle模塊畫一個(gè)小心心,并在心上畫女票名字的首字母縮寫,單純只為紅顏一笑。
代碼貼出來,很簡(jiǎn)單
import turtle import time def liujia(): for i in range (200): turtle.right(1) turtle.forward(1) turtle.color('red','pink') turtle.pensize(2) turtle.speed(10) turtle.goto(0,0) turtle.begin_fill() turtle.left(140) turtle.forward(112) liujia() turtle.left(120) liujia() turtle.forward(112) turtle.end_fill() turtle.pensize(5) turtle.up() turtle.goto(-50,142.7) turtle.left(50) turtle.down() turtle.forward(60) turtle.left(90) turtle.forward(25) turtle.up() turtle.goto(37.5,142.7) turtle.down() turtle.forward(25) turtle.up() turtle.goto(50,142.7) turtle.right(90) turtle.down() turtle.forward(60) for i in range (20): turtle.right(7.8) turtle.forward(0.3) turtle.forward(8) turtle.up() turtle.goto(100,-10) turtle.write("I Love you")