1樓:ggggg
可以用來彈琴:
詳情請移步:
在遊戲《原神》裡演奏歌曲是什麼體驗? - ggggg的回答 - 知乎 https://www.
2樓:程式設計學苑
python之所以這麼火就是因為他的膠水特性,能做的事情太多了,可以做web開發,做遊戲,做資料分析以及人工智慧等方面,想諮詢更多相關資訊,可以諮詢老男孩教育官網做python最早的學校,希望可以幫助到你
3樓:godmodel
1.哆啦A夢
效果圖原始碼
from
turtle
import
*'''
Python學習
'''# 無軌跡跳躍
defmy_goto(x
,y):penup
()goto(x
,y)pendown
()# 眼睛
defeyes
():fillcolor
("#ffffff"
)begin_fill
()tracer
(False)a
=2.5
fori
inrange
(120
):if
0<=i<30or
60<=
i<90:
a-=0.05lt(
3)fd(
a)else:a
+=0.05lt(
3)fd(
a)tracer
(True
)end_fill
()# 鬍鬚
defbeard
():my_goto(-
32,135)
seth
(165)fd
(60)my_goto(-
32,125)
seth
(180)fd
(60)my_goto(-
32,115)
seth
(193)fd
(60)my_goto(37
,135
)seth(15
)fd(60
)my_goto(37
,125
)seth(0
)fd(60
)my_goto(37
,115
)seth(-
13)fd(
60)# 嘴巴
defmouth
():my_goto(5
,148
)seth
(270)fd
(100
)seth(0
)circle
(120,50
)seth
(230
)circle(-
120,
100)
# 圍巾
defscarf
():fillcolor
('#e70010'
)begin_fill
()seth(0
)fd(200
)circle(-
5,90)
fd(10)
circle(-
5,90)
fd(207)
circle(-
5,90)
fd(10)
circle(-
5,90)
end_fill
()# 鼻子
defnose
():my_goto(-
10,158)
seth
(315
)fillcolor
('#e70010'
)begin_fill
()circle(20
)end_fill
()# 黑眼睛
defblack_eyes
():seth(0
)my_goto(-
20,195)
fillcolor
('#000000'
)begin_fill
()circle(13
)end_fill
()pensize(6
)my_goto(20
,205
)seth(75
)circle(-
10,150)
pensize(3
)my_goto(-
17,200)
seth(0
)fillcolor
('#ffffff'
)begin_fill
()circle(5
)end_fill
()my_goto(0
,0)# 臉
defface
():fd
(183)lt
(45)fillcolor
('#ffffff'
)begin_fill
()circle
(120
,100
)seth
(180
)# print(pos())fd(
121)
pendown
()seth
(215
)circle
(120
,100
)end_fill
()my_goto
(63.56
,218.24
)seth(90
)eyes
()seth
(180
)penup
()fd(60
)pendown
()seth(90
)eyes
()penup
()seth
(180)fd
(64)# 頭型
defhead
():penup
()circle
(150,40
)pendown
()fillcolor
('#00a0de'
)begin_fill
()circle
(150
,280
)end_fill
()# 畫哆啦A夢
defDoraemon
():# 頭部
head
()# 圍脖
scarf
()# 臉
face
()# 紅鼻子
nose
()# 嘴巴
mouth
()# 鬍鬚
beard
()# 身體
my_goto(0
,0)seth(0
)penup
()circle
(150,50
)pendown
()seth(30
)fd(40
)seth(70
)circle(-
30,270)
fillcolor
('#00a0de'
)begin_fill
()seth
(230)fd
(80)seth(90
)circle
(1000,1
)seth(-
89)circle(-
1000,10
)# print(pos())
seth
(180)fd
(70)seth(90
)circle(30
,180
)seth
(180)fd
(70)# print(pos())
seth
(100
)circle(-
1000,9
)seth(-
86)circle
(1000,2
)seth
(230)fd
(40)# print(pos())
circle(-
30,230)
seth(45
)fd(81
)seth(0
)fd(203
)circle(5
,90)fd
(10)circle(5
,90)fd
(7)seth(40
)circle
(150,10
)seth(30
)fd(40
)end_fill
()# 左手
seth(70
)fillcolor
('#ffffff'
)begin_fill
()circle(-
30)end_fill
()# 腳
my_goto
(103.74,-
182.59
)seth(0
)fillcolor
('#ffffff'
)begin_fill
()fd(15
)circle(-
15,180)fd(
90)circle(-
15,180)fd(
10)end_fill
()my_goto(-
96.26,-
182.59
)seth
(180
)fillcolor
('#ffffff'
)begin_fill
()fd(15
)circle(15
,180)fd
(90)circle(15
,180)fd
(10)end_fill
()# 右手
my_goto(-
133.97,-
91.81
)seth(50
)fillcolor
('#ffffff'
)begin_fill
()circle(30
)end_fill
()# 口袋
my_goto(-
103.42
,15.09
)seth(0
)fd(38
)seth
(230
)begin_fill
()circle(90
,260
)end_fill
()my_goto(5
,-40)
seth(0
)fd(70
)seth(-
90)circle(-
70,180)
seth(0
)fd(70
)#鈴鐺
my_goto(-
103.42
,15.09)fd
(90)seth(70
)fillcolor
('#ffd200'
)# print(pos())
begin_fill
()circle(-
20)end_fill
()seth
(170
)fillcolor
('#ffd200'
)begin_fill
()circle(-
2,180)
seth(10
)circle(-
100,22)
circle(-
2,180)
seth
(180-10
)circle
(100,22
)end_fill
()goto(-
13.42
,15.09
)seth
(250
)circle(20
,110
)seth(90
)fd(15
)dot(10
)my_goto(0
,-150)
# 畫眼睛
black_eyes
()if
__name__
=='__main__'
:screensize
(800
,600
,"#f0f0f0"
)pensize(3
)# 畫筆寬度
speed(3
)# 畫筆速度
Doraemon
()my_goto
(100,-
300)
write
('大魚海棠'
,font=(
"Bradley Hand ITC",30
,"bold"
))mainloop
()2.小豬佩奇
效果圖原始碼
# coding:utf-8
import turtle as t
t.pensize(4) # 設定畫筆的大小
t.colormode(255) # 設定GBK顏色範圍為0-255
t.color((255,155,192),"pink") # 設定畫筆顏色和填充顏色(pink)
t.setup(840,500) # 設定主視窗的大小為840*500
t.speed(10) # 設定畫筆速度為10
#鼻子t.pu() # 提筆
t.goto(-100,100) # 畫筆前往座標(-100,100)
t.pd() # 下筆
t.seth(-30) # 筆的角度為-30°
t.begin_fill() # 外形填充的開始標誌
a=0.4
for i in range(120):
if 0<=i<30 or 60<=i<90:
a=a+0.08
t.lt(3) #向左轉3度
t.fd(a) #向前走a的步長
else:
a=a-0.08
t.lt(3)
t.fd(a)
t.end_fill() # 依據輪廓填充
t.pu() # 提筆
t.seth(90) # 筆的角度為90度
t.fd(25) # 向前移動25
t.seth(0) # 轉換畫筆的角度為0
t.fd(10)
t.pd()
t.pencolor(255,155,192) # 設定畫筆顏色
t.seth(10)
t.begin_fill()
t.circle(5) # 畫乙個半徑為5的圓
t.color(160,82,45) # 設定畫筆和填充顏色
t.end_fill()
t.pu()
t.seth(0)
t.fd(20)
t.pd()
t.pencolor(255,155,192)
t.seth(10)
t.begin_fill()
t.circle(5)
t.color(160,82,45)
t.end_fill()
#頭t.color((255,155,192),"pink")
t.pu()
t.seth(90)
t.fd(41)
t.seth(0)
t.fd(0)
t.pd()
t.begin_fill()
t.seth(180)
t.circle(300,-30) # 順時針畫乙個半徑為300,圓心角為30°的園
t.circle(100,-60)
t.circle(80,-100)
t.circle(150,-20)
t.circle(60,-95)
t.seth(161)
t.circle(-300,15)
t.pu()
t.goto(-100,100)
t.pd()
t.seth(-30)
a=0.4
for i in range(60):
if 0<=i<30 or 60<=i<90:
a=a+0.08
t.lt(3) #向左轉3度
t.fd(a) #向前走a的步長
else:
a=a-0.08
t.lt(3)
t.fd(a)
t.end_fill()
#耳朵t.color((255,155,192),"pink")
t.pu()
t.seth(90)
t.fd(-7)
t.seth(0)
t.fd(70)
t.pd()
t.begin_fill()
t.seth(100)
t.circle(-50,50)
t.circle(-10,120)
t.circle(-50,54)
t.end_fill()
t.pu()
t.seth(90)
t.fd(-12)
t.seth(0)
t.fd(30)
t.pd()
t.begin_fill()
t.seth(100)
t.circle(-50,50)
t.circle(-10,120)
t.circle(-50,56)
t.end_fill()
#眼睛t.color((255,155,192),"white")
t.pu()
t.seth(90)
t.fd(-20)
t.seth(0)
t.fd(-95)
t.pd()
t.begin_fill()
t.circle(15)
t.end_fill()
t.color("black")
t.pu()
t.seth(90)
t.fd(12)
t.seth(0)
t.fd(-3)
t.pd()
t.begin_fill()
t.circle(3)
t.end_fill()
t.color((255,155,192),"white")
t.pu()
t.seth(90)
t.fd(-25)
t.seth(0)
t.fd(40)
t.pd()
t.begin_fill()
t.circle(15)
t.end_fill()
t.color("black")
t.pu()
t.seth(90)
t.fd(12)
t.seth(0)
t.fd(-3)
t.pd()
t.begin_fill()
t.circle(3)
t.end_fill()
#腮t.color((255,155,192))
t.pu()
t.seth(90)
t.fd(-95)
t.seth(0)
t.fd(65)
t.pd()
t.begin_fill()
t.circle(30)
t.end_fill()
#嘴t.color(239,69,19)
t.pu()
t.seth(90)
t.fd(15)
t.seth(0)
t.fd(-100)
t.pd()
t.seth(-80)
t.circle(30,40)
t.circle(40,80)
#身體t.color("red",(255,99,71))
t.pu()
t.seth(90)
t.fd(-20)
t.seth(0)
t.fd(-78)
t.pd()
t.begin_fill()
t.seth(-130)
t.circle(100,10)
t.circle(300,30)
t.seth(0)
t.fd(230)
t.seth(90)
t.circle(300,30)
t.circle(100,3)
t.color((255,155,192),(255,100,100))
t.seth(-135)
t.circle(-80,63)
t.circle(-150,24)
t.end_fill()
#手t.color((255,155,192))
t.pu()
t.seth(90)
t.fd(-40)
t.seth(0)
t.fd(-27)
t.pd()
t.seth(-160)
t.circle(300,15)
t.pu()
t.seth(90)
t.fd(15)
t.seth(0)
t.fd(0)
t.pd()
t.seth(-10)
t.circle(-20,90)
t.pu()
t.seth(90)
t.fd(30)
t.seth(0)
t.fd(237)
t.pd()
t.seth(-20)
t.circle(-300,15)
t.pu()
t.seth(90)
t.fd(20)
t.seth(0)
t.fd(0)
t.pd()
t.seth(-170)
t.circle(20,90)
#腳t.pensize(10)
t.color((240,128,128))
t.pu()
t.seth(90)
t.fd(-75)
t.seth(0)
t.fd(-180)
t.pd()
t.seth(-90)
t.fd(40)
t.seth(-180)
t.color("black")
t.pensize(15)
t.fd(20)
t.pensize(10)
t.color((240,128,128))
t.pu()
t.seth(90)
t.fd(40)
t.seth(0)
t.fd(90)
t.pd()
t.seth(-90)
t.fd(40)
t.seth(-180)
t.color("black")
t.pensize(15)
t.fd(20)
#尾巴t.pensize(4)
t.color((255,155,192))
t.pu()
t.seth(90)
t.fd(70)
t.seth(0)
t.fd(95)
t.pd()
t.seth(0)
t.circle(70,20)
t.circle(10,330)
t.circle(70,30)
3.皮卡丘
效果圖吃的少的皮卡丘)
原始碼import turtle as t
import time
# 皮卡丘
# 基礎設定
t.screensize(800, 600)
t.pensize(2) # 設定畫筆的大小
t.speed(10) # 設定畫筆速度為10
# 畫左偏曲線函式
def radian_left(ang, dis, step, n):
for i in range(ndis += step # dis增大step
t.lt(ang) # 向左轉ang度
t.fd(dis) # 向前走dis的步長
def radian_right(ang, dis, step, n):
for i in range(ndis += step
t.rt(ang) # 向左轉ang度
t.fd(dis) # 向前走dis的步長
# 畫耳朵
def InitEars():
t.color("black", "yellow")
# 左耳朵曲線
t.pu() # 提筆
t.goto(-50, 100) # 筆頭初始位置
t.pd() # 下筆
t.setheading(110) # 畫筆角度
t.begin_fill()
radian_left(1.2, 0.4, 0.1, 40)
t.setheading(270) # 畫筆角度
radian_left(1.2, 0.4, 0.1, 40)
t.setheading(44) # 畫筆角度
t.forward(32)
t.end_fill()
# 右耳朵曲線
t.pu() # 提筆
t.goto(50, 100) # 筆頭初始位置
t.pd() # 下筆
t.setheading(70) # 畫筆角度
t.begin_fill()
radian_right(1.2, 0.4, 0.1, 40)
t.setheading(270) # 畫筆角度
radian_right(1.2, 0.4, 0.1, 40)
t.setheading(136) # 畫筆角度
t.forward(32)
t.end_fill()
# 耳朵黑
t.begin_fill()
t.fillcolor("black")
t.pu() # 提筆
t.goto(88, 141) # 筆頭初始位置
t.pd() # 下筆
t.setheading(35) # 畫筆角度
radian_right(1.2, 1.6, 0.1, 16)
t.setheading(270) # 畫筆角度
radian_right(1.2, 0.4, 0.1, 25)
t.setheading(132) # 畫筆角度
t.forward(31)
t.end_fill()
t.begin_fill()
t.fillcolor("black")
t.pu() # 提筆
t.goto(-88, 141) # 筆頭初始位置
t.pd() # 下筆
t.setheading(145) # 畫筆角度
radian_left(1.2, 1.6, 0.1, 16)
t.setheading(270) # 畫筆角度
radian_left(1.2, 0.4, 0.1, 25)
t.setheading(48) # 畫筆角度
t.forward(31)
t.end_fill()
# 畫尾巴
def InitTail尾巴
t.begin_fill()
t.fillcolor("yellow")
t.pu() # 提筆
t.goto(64, -140) # 筆頭初始位置
t.pd() # 下筆
t.setheading(10) # 畫筆角度
t.forward(20)
t.setheading(90) # 畫筆角度
t.forward(20)
t.setheading(10) # 畫筆角度
t.forward(10)
t.setheading(80) # 畫筆角度
t.forward(100)
t.setheading(35) # 畫筆角度
t.forward(80)
t.setheading(260) # 畫筆角度
t.forward(100)
t.setheading(205) # 畫筆角度
t.forward(40)
t.setheading(260) # 畫筆角度
t.forward(37)
t.setheading(205) # 畫筆角度
t.forward(20)
t.setheading(260) # 畫筆角度
t.forward(25)
t.setheading(175) # 畫筆角度
t.forward(30)
t.setheading(100) # 畫筆角度
t.forward(13)
t.end_fill()
# 畫腳
def InitFoots腳
t.begin_fill()
t.fillcolor("yellow")
t.pensize(2)
t.pu() # 提筆
t.goto(-70, -200) # 筆頭初始位置
t.pd() # 下筆
t.setheading(225) # 畫筆角度
radian_left(0.5, 1.2, 0, 12)
radian_left(35, 0.6, 0, 4)
radian_left(1, 1.2, 0, 18)
t.setheading(160) # 畫筆角度
t.forward(13)
t.end_fill()
t.begin_fill()
t.fillcolor("yellow")
t.pensize(2)
t.pu() # 提筆
t.goto(70, -200) # 筆頭初始位置
t.pd() # 下筆
t.setheading(315) # 畫筆角度
radian_right(0.5, 1.2, 0, 12)
radian_right(35, 0.6, 0, 4)
radian_right(1, 1.2, 0, 18)
t.setheading(20) # 畫筆角度
t.forward(13)
t.end_fill()
# 畫身體
def InitBody外形輪廓
t.begin_fill()
t.pu() # 提筆
t.goto(112, 0) # 筆頭初始位置
t.pd() # 下筆
t.setheading(90) # 畫筆角度
t.circle(112, 180)
t.setheading(250) # 畫筆角度
radian_left(1.6, 1.3, 0, 50)
radian_left(0.8, 1.5, 0, 25)
t.setheading(255) # 畫筆角度
radian_left(0.4, 1.6, 0.2, 27)
radian_left(2.8, 1, 0, 45)
radian_right(0.9, 1.4, 0, 31)
t.setheading(355) # 畫筆角度
radian_right(0.9, 1.4, 0, 31)
radian_left(2.8, 1, 0, 45)
radian_left(0.4, 7.2, -0.2, 27)
t.setheading(10) # 畫筆角度
radian_left(0.8, 1.5, 0, 25)
radian_left(1.6, 1.3, 0, 50)
t.end_fill()
def InitEyes左眼睛
t.begin_fill()
t.fillcolor("black")
t.pu() # 提筆
t.goto(-46, 10) # 筆頭初始位置
t.pd() # 下筆
t.setheading(90) # 畫筆角度
t.circle(5, 360)
t.end_fill()
# 右眼睛
t.begin_fill()
t.fillcolor("black")
t.pu() # 提筆
t.goto(46, 10) # 筆頭初始位置
t.pd() # 下筆
t.setheading(-90) # 畫筆角度
t.circle(5, 360)
t.end_fill()
# 畫臉
def InitFace臉蛋
t.begin_fill()
t.fillcolor("red")
t.pu() # 提筆
t.goto(-63, -10) # 筆頭初始位置
t.pd() # 下筆
t.setheading(90) # 畫筆角度
t.circle(10, 360)
t.end_fill()
t.begin_fill()
t.fillcolor("red")
t.pu() # 提筆
t.goto(63, -10) # 筆頭初始位置
t.pd() # 下筆
t.setheading(-90) # 畫筆角度
t.circle(10, 360)
t.end_fill()
# 嘴巴
t.pensize(2.2)
t.pu() # 提筆
t.goto(0, 0) # 筆頭初始位置
t.pd() # 下筆
t.setheading(235) # 畫筆角度
radian_right(5, 0.8, 0, 30)
t.pu() # 提筆
t.goto(0, 0) # 筆頭初始位置
t.pd() # 下筆
t.setheading(305) # 畫筆角度
radian_left(5, 0.8, 0, 30)
# 畫手
def InitHands左手
t.pensize(2)
t.pu() # 提筆
t.goto(-46, -100) # 筆頭初始位置
t.pd() # 下筆
t.setheading(285) # 畫筆角度
radian_right(0.4, 1.2, 0, 26)
radian_right(5, 0.35, 0, 26)
radian_right(0.3, 1.2, 0, 15)
# 右手
t.pu() # 提筆
t.goto(46, -100) # 筆頭初始位置
t.pd() # 下筆
t.setheading(255) # 畫筆角度
radian_left(0.4, 1.2, 0, 26)
radian_left(5, 0.35, 0, 26)
radian_left(0.3, 1.2, 0, 15)
def CloseEyes左眼睛
t.pu() # 提筆
t.goto(-46, 12) # 筆頭初始位置
t.pd() # 下筆
t.setheading(180) # 畫筆角度
t.forward(10)
# 右眼睛
t.pu() # 提筆
t.goto(46, 12) # 筆頭初始位置
t.pd() # 下筆
t.setheading(0) # 畫筆角度
t.forward(10)
# 初始化
def Init():
InitEars()
InitTail()
InitFoots()
InitBody()
InitFace()
InitHands()
InitEyes()
# 眨眼睛
def Upgarde():
InitEars()
InitTail()
InitFoots()
InitBody()
InitFace()
InitHands()
CloseEyes()
def Upgarde_Init():
InitEars()
InitTail()
InitFoots()
InitBody()
InitFace()
InitHands()
InitEyes()
def main():
Init()
t.tracer(False)
# 眨眼睛動畫
for i in range(30if i % 2 == 0t.resett.hideturtleUpgardet.
updatetime.sleep(0.3elset.
resett.hideturtleUpgarde_Initt.updatetime.
sleep(1)
main()
# 結束畫筆
t.done()
你娶老婆是用來幹嘛的?
行屍愛上了走肉 這個問題是個陷阱。閨蜜問估計是想要下邊這兩個答案中的乙個。詼諧一點就是老婆是用來幹的。正常一點就是老婆是用來疼 愛 呵護的。看當時的氛圍情況選擇答案來說就行了。如果有老婆的親屬爸媽在場,就別玩兒詼諧了。最好是跳出這個問題的模式,不回答娶老婆是用來幹什麼的。因為無論回答用來幹什麼都點男...
男朋友是用來幹嘛的啊?
喜歡可樂的琳琳 可是也正因為有他讓我知道除父母以外還有乙個男生願意這麼細心這麼溫柔的對待我這麼包容我呵護我的少女心 因為他讓我走在長沙的街頭覺得自己不再渺小平凡 范范 你說呢,當然是用來關心用來愛的呀 在你愛他的同時,你也會深刻體會到被疼在心尖上的感覺原來在這個世界上除了父母還有別人深深愛著自己這種...
原畫入門階段是否應該把所有的時間都用來學習人體結構?
chen陽 其實大學教材很有用,只是教材用在原畫方面沒有具體例子,所以不好理解。黑白構成,色彩構成,立體構成,都不錯,內功,然後是結合優秀的設計作品學習。人體只要能把比例和體積能很好的表現,就問題不大。多思考,是學習的捷徑。 青騎士 原畫這個詞先改了吧,你都說上英文了就不能把中文用詞規範點麼。遊戲美...