python皮卡丘字符打印代码,python画皮卡丘的代码

大家好,本文将围绕用python画一只可爱的皮卡丘展开说明,python皮卡丘字符打印代码是一个很多人都想弄明白的事情,想搞清楚python皮卡丘编程代码教程需要先了解以下几个事情。

1、python皮卡丘编程代码

import turtle
def getPosition(x, y):
turtle.setx(x)
turtle.sety(y)
print(x, y)
class Pikachu:
def __init__(self):
self.t = turtle.Turtle()
t = self.t
t.pensize(3)
t.speed(9)
t.ondrag(getPosition)
def noTrace_goto(self, x, y):
self.t.penup()
self.t.goto(x, y)
self.t.pendown()
def leftEye(self, x, y):
self.noTrace_goto(x, y)
t = self.t
t.seth(0)
t.fillcolor('#333333')
t.begin_fill()
t.circle(22)
t.end_fill()
self.noTrace_goto(x, y+10)
t.fillcolor('#000000')
t.begin_fill()
t.circle(10)
t.end_fill()
self.noTrace_goto(x+6, y + 22)
t.fillcolor('#ffffff')
t.begin_fill()
t.circle(10)
t.end_fill()
def rightEye(self, x, y):
self.noTrace_goto(x, y)
t = self.t
t.seth(0)
t.fillcolor('#333333')
t.begin_fill()
t.circle(22)
t.end_fill()
self.noTrace_goto(x, y+10)
t.fillcolor('#000000')
t.begin_fill()
t.circle(10)
t.end_fill()
self.noTrace_goto(x-6, y + 22)
t.fillcolor('#ffffff')
t.begin_fill()
t.circle(10)
t.end_fill()
def mouth(self, x, y):
self.noTrace_goto(x, y)
t = self.t
t.fillcolor('#88141D')
t.begin_fill()
# 下嘴唇
l1 = []
l2 = []
t.seth(190)
a = 0.7
for i in range(28):
a += 0.1
t.right(3)
t.fd(a)
l1.append(t.position())

self.noTrace_goto(x, y)

t.seth(10)
a = 0.7
for i in range(28):
a += 0.1
t.left(3)
t.fd(a)
l2.append(t.position())

# 上嘴唇

t.seth(10)
t.circle(50, 15)
t.left(180)
t.circle(-50, 15)

t.circle(-50, 40)
t.seth(233)
t.circle(-50, 55)
t.left(180)
t.circle(50, 12.1)
t.end_fill()
# 舌头
self.noTrace_goto(17, 54)
t.fillcolor('#DD716F')
t.begin_fill()
t.seth(145)
t.circle(40, 86)
t.penup()
for pos in reversed(l1[:20]):
t.goto(pos[0], pos[1]+1.5)
for pos in l2[:20]:
t.goto(pos[0], pos[1]+1.5)
t.pendown()
t.end_fill()
# 鼻子
self.noTrace_goto(-17, 94)
t.seth(8)
t.fd(4)
t.back(8)
# 红脸颊
def leftCheek(self, x, y):
turtle.tracer(False)
t = self.t
self.noTrace_goto(x, y)
t.seth(300)
t.fillcolor('#DD4D28')
t.begin_fill()
a = 2.3
for i in range(120):
if 0 <= i < 30 or 60 <= i < 90:
a -= 0.05
t.lt(3)
t.fd(a)
else:
a += 0.05
t.lt(3)
t.fd(a)
t.end_fill()
turtle.tracer(True)
def rightCheek(self, x, y):
t = self.t
turtle.tracer(False)
self.noTrace_goto(x, y)
t.seth(60)
t.fillcolor('#DD4D28')
t.begin_fill()
a = 2.3
for i in range(120):
if 0 <= i < 30 or 60 <= i < 90:
a -= 0.05
t.lt(3)
t.fd(a)
else:
a += 0.05
t.lt(3)
t.fd(a)
t.end_fill()
turtle.tracer(True)
def colorLeftEar(self, x, y):
t = self.t
self.noTrace_goto(x, y)
t.fillcolor('#000000')
t.begin_fill()
t.seth(330)
t.circle(100, 35)
t.seth(219)
t.circle(-300, 19)
t.seth(110)
t.circle(-30, 50)
t.circle(-300, 10)
t.end_fill()
def colorRightEar(self, x, y):
t = self.t
self.noTrace_goto(x, y)
t.fillcolor('#000000')
t.begin_fill()
t.seth(300)
t.circle(-100, 30)
t.seth(35)
t.circle(300, 15)
t.circle(30, 50)
t.seth(190)
t.circle(300, 17)
t.end_fill()
def body(self):
t = self.t
t.fillcolor('#F6D02F')
t.begin_fill()
# 右脸轮廓
t.penup()
t.circle(130, 40)
t.pendown()
t.circle(100, 105)
t.left(180)
t.circle(-100, 5)
# 右耳朵
t.seth(20)
t.circle(300, 30)
t.circle(30, 50)
t.seth(190)
t.circle(300, 36)
# 上轮廓
t.seth(150)
t.circle(150, 70)

# 左耳朵
t.seth(200)
t.circle(300, 40)
t.circle(30, 50)
t.seth(20)
t.circle(300, 35)
#print(t.pos())
# 左脸轮廓
t.seth(240)
t.circle(105, 95)
t.left(180)
t.circle(-105, 5)
# 左手
t.seth(210)
t.circle(500, 18)
t.seth(200)
t.fd(10)
t.seth(280)
t.fd(7)
t.seth(210)
t.fd(10)
t.seth(300)
t.circle(10, 80)
t.seth(220)
t.fd(10)
t.seth(300)
t.circle(10, 80)
t.seth(240)
t.fd(12)
t.seth(0)
t.fd(13)
t.seth(240)
t.circle(10, 70)
t.seth(10)
t.circle(10, 70)
t.seth(10)
t.circle(300, 18)
t.seth(75)
t.circle(500, 8)
t.left(180)
t.circle(-500, 15)
t.seth(250)
t.circle(100, 65)
# 左脚
t.seth(320)
t.circle(100, 5)
t.left(180)
t.circle(-100, 5)
t.seth(220)
t.circle(200, 20)
t.circle(20, 70)
t.seth(60)
t.circle(-100, 20)
t.left(180)
t.circle(100, 20)
t.seth(300)
t.circle(10, 70)
t.seth(60)
t.circle(-100, 20)
t.left(180)
t.circle(100, 20)
t.seth(10)
t.circle(100, 60)
# 横向
t.seth(180)
t.circle(-100, 10)
t.left(180)
t.circle(100, 10)
t.seth(5)
t.circle(100, 10)
t.circle(-100, 40)
t.circle(100, 35)
t.left(180)
t.circle(-100, 10)
# 右脚
t.seth(290)
t.circle(100, 55)
t.circle(10, 50)
t.seth(120)
t.circle(100, 20)
t.left(180)
t.circle(-100, 20)
t.seth(0)
t.circle(10, 50)
t.seth(110)
t.circle(100, 20)
t.left(180)
t.circle(-100, 20)
t.seth(30)
t.circle(20, 50)
t.seth(100)
t.circle(100, 40)
# 右侧身体轮廓
t.seth(200)
t.circle(-100, 5)
t.left(180)
t.circle(100, 5)
t.left(30)
t.circle(100, 75)
t.right(15)
t.circle(-300, 21)
t.left(180)
t.circle(300, 3)
# 右手
t.seth(43)
t.circle(200, 60)
t.right(10)
t.fd(10)
t.circle(5, 160)
t.seth(90)
t.circle(5, 160)
t.seth(90)
t.fd(10)
t.seth(90)
t.circle(5, 180)
t.fd(10)
t.left(180)
t.left(20)
t.fd(10)
t.circle(5, 170)
t.fd(10)
t.seth(240)
t.circle(50, 30)
t.end_fill()
self.noTrace_goto(130, 125)
t.seth(-20)
t.fd(5)
t.circle(-5, 160)
t.fd(5)
# 手指纹
self.noTrace_goto(166, 130)
t.seth(-90)
t.fd(3)
t.circle(-4, 180)
t.fd(3)
t.seth(-90)
t.fd(3)
t.circle(-4, 180)
t.fd(3)
# 尾巴
self.noTrace_goto(168, 134)
t.fillcolor('#F6D02F')
t.begin_fill()
t.seth(40)
t.fd(200)
t.seth(-80)
t.fd(150)
t.seth(210)
t.fd(150)
t.left(90)
t.fd(100)
t.right(95)
t.fd(100)
t.left(110)
t.fd(70)
t.right(110)
t.fd(80)
t.left(110)
t.fd(30)
t.right(110)
t.fd(32)
t.right(106)
t.circle(100, 25)
t.right(15)
t.circle(-300, 2)
##############
#print(t.pos())
t.seth(30)
t.fd(40)
t.left(100)
t.fd(70)
t.right(100)
t.fd(80)
t.left(100)
t.fd(46)
t.seth(66)
t.circle(200, 38)
t.right(10)
t.fd(10)
t.end_fill()
# 尾巴花纹
t.fillcolor('#923E24')
self.noTrace_goto(126.82, -156.84)
t.begin_fill()

t.seth(30)
t.fd(40)
t.left(100)
t.fd(40)
t.pencolor('#923e24')
t.seth(-30)
t.fd(30)
t.left(140)
t.fd(20)
t.right(150)
t.fd(20)
t.left(150)
t.fd(20)
t.right(150)
t.fd(20)
t.left(130)
t.fd(18)
t.pencolor('#000000')
t.seth(-45)
t.fd(67)
t.right(110)
t.fd(80)
t.left(110)
t.fd(30)
t.right(110)
t.fd(32)
t.right(106)
t.circle(100, 25)
t.right(15)
t.circle(-300, 2)
t.end_fill()
# 帽子、眼睛、嘴巴、脸颊
self.cap(-134.07, 147.81)
self.mouth(-5, 25)
self.leftCheek(-126, 32)
self.rightCheek(107, 63)
self.colorLeftEar(-250, 100)
self.colorRightEar(140, 270)
self.leftEye(-85, 90)
self.rightEye(50, 110)
t.hideturtle()
def cap(self, x, y):
self.noTrace_goto(x, y)
t = self.t
t.fillcolor('#CD0000')
t.begin_fill()
t.seth(200)
t.circle(400, 7)
t.left(180)
t.circle(-400, 30)
t.circle(30, 60)
t.fd(50)
t.circle(30, 45)
t.fd(60)
t.left(5)
t.circle(30, 70)
t.right(20)
t.circle(200, 70)
t.circle(30, 60)
t.fd(70)
# print(t.pos())
t.right(35)
t.fd(50)
t.circle(8, 100)
t.end_fill()
self.noTrace_goto(-168.47, 185.52)
t.seth(36)
t.circle(-270, 54)
t.left(180)
t.circle(270, 27)
t.circle(-80, 98)
t.fillcolor('#444444')
t.begin_fill()
t.left(180)
t.circle(80, 197)
t.left(58)
t.circle(200, 45)
t.end_fill()
self.noTrace_goto(-58, 270)
t.pencolor('#228B22')
t.dot(35)
self.noTrace_goto(-30, 280)
t.fillcolor('#228B22')
t.begin_fill()
t.seth(100)
t.circle(30, 180)
t.seth(190)
t.fd(15)
t.seth(100)
t.circle(-45, 180)
t.right(90)
t.fd(15)
t.end_fill()
t.pencolor('#000000')
def start(self):
self.body()
def main():
print('Painting the Pikachu... ')
turtle.screensize(800, 600)
turtle.title('Pikachu')
pikachu = Pikachu()
pikachu.start()
turtle.mainloop()
if __name__ == '__main__':
main()

2、我用python画皮卡丘,没有错误出现,我也打开才cmd窗口输入了page22.py,前面也加入了import turtle,求

命令行输入:python page22.py
如果python不是环境变量,请添加环境变量

3、皮卡丘怎么画

皮卡丘画法如下:

1、首先画出皮卡丘的头部轮廓,它有两只长长的耳朵。

2、皮卡丘的耳朵尖端是黑色的,画出皮卡丘两只圆滚滚的大眼睛。

扫描二维码关注公众号,回复: 14807165 查看本文章

3、接着画出它的嘴巴,正在开心的大笑。

4、然后画出皮卡丘的身体,两只手是向上的。

5、画出皮卡丘的身体,它的一只脚是正在向前迈的,还有长长的类似闪电的尾巴。

6、最后给皮卡丘涂上漂亮的颜色,可爱的皮卡丘简笔画就完成啦!

皮卡丘是日本任天堂公司开发的掌机游戏系列《口袋妖怪》中登场精灵中的一种。为口袋妖怪里代表性的角色。

随着其周边动画宠物小精灵(即神奇宝贝)动画的热播,这只神奇宝贝的魅力逐渐开始被低年龄层的玩家所接受,随之带动的是女性玩家,标志着这股皮卡丘风潮的到来。皮卡丘被选为2014年巴西世界杯日本官方吉祥物。

由Game Freak的设计组设计并由杉森建定案,皮卡丘的形象是为数不多的几个与众不同的神奇宝贝形象之一 。

神奇宝贝系列的制作者田尻智称,皮卡丘的名字来源于日语pika(电火花的响声)和chu(老鼠的响声)。

开发者増田顺一指出为了同时吸引日本观众和美国观众,皮卡丘的名字是最难创造的神奇宝贝名字之一 。

4、皮卡丘怎么画皮卡丘怎么画?

皮卡丘画法:
1、画头顶(像是一本打开的书),画出皮卡丘的脸颊轮廓。
2、画出皮卡丘萌萌哒小短手,用弧线把耳朵与脸颊连接起来。
3、接下来画出身体的轮廓,画两个扁扁的椭圆就是皮卡丘的小脚丫了。
4、把身体与脚连接起来,闪电形状的尾巴,在脸部中间点一个点作为鼻子。在依次画出嘴巴和耳朵的细节。
5、在面部画出四个圆圈,分别是眼睛和脸颊,画眼睛的高光。最后用相应的颜色依次上色就可以了!

5、怎样画一只皮卡丘

一只皮卡丘画法如下:

1、首先我们先画出皮卡丘的头部,一定要画出尖尖的耳朵和椭圆形的脸。

2、接下来就是绘制皮卡丘的身体和四肢啦,记得把它的胳膊和腿画的短一些,显得更加可爱。

3、画上可爱的五官和圆圆的红脸蛋,给皮卡丘画上闪电形状的尾巴。

4、给皮卡丘的耳朵尖涂上黑色,一只激萌的皮卡丘线稿就画好啦。

5、最后就是涂上颜色啦,只需要三种颜色:黄色的身体、红色的脸蛋、粉色的嘴巴,一只皮卡丘就画好啦。

角色形象:

皮卡丘是一只矮矮胖胖圆乎乎的类啮齿型宝可梦,全身的皮毛都是黄色的。它的耳朵很长,尖端是黑色的。它有小小的嘴巴,侧面看起来像一个数字3,还有黑色的眼睛。它的脸颊上有两个红色的圆。

它的尾巴是像锯齿状的闪电,与身体相接的部分也有一片棕色的皮毛。尽管它确切来说是四足动物,更多时候它是站着并用两只后脚走路。住在森林中的它们通常以树果为食。它们用小小的电击把树果从树上打下来,这样就不必爬树,还可以顺带将其烤熟。

野生的皮卡丘大多群体行动,很少固定在一个地方。皮卡丘的听力很好,这得益于它的大耳朵。许多家养的皮卡丘可以理解并演绎出人类的话,甚至比大多数宠物狗做得更好。

6、如何画一个皮卡丘

画一个皮卡丘的方法如下:

1、先画出皮卡丘的脸部轮廓、耳朵,在耳朵上方画出弧线并把耳尖涂黑,接着画出皮卡丘的身体和双脚,再画出眼睛、鼻子、嘴巴和两颊的红晕。

2、然后画出皮卡丘的双手和闪电形状的尾巴,在皮卡丘两边画上爱心,最后给皮卡丘和爱心涂上颜色即可。

3、先画两个正方形,尽量靠眼力,不借助直尺,用铅笔,轻轻地画。

第二种方法如下:

在方框内画圆,铅笔,轻轻地,对角辅助线,再次有请提示:轻点儿画,画垂直中线,对现在还没画完辅助线,辅助线非常重要。

画两条横穿正方形的水平辅助线,然后在它们下面再画一条水平线。在下半部分画出皮卡丘大腿的位置,轻点画哦。

画皮卡丘的脚尖的位置,画皮卡丘的脚,两个圆之间的小圆,是肩膀的位置,一定要记得,现在还是要轻轻地下笔,放松一些。

绘制手臂的基本走向,画出手臂大致的宽度,就这样用简单的弧线和圆圈的组合,画出完整的手臂。

所有的五官都画在这个长方形的区域内,画出辅助线,在长方形上画一条线,略低于中间位置。

画脸颊,在长方形的上方绘制眼睛,不需要正圆, 略微倾斜的椭圆形看起来很可爱,画眼睛的高光,嘴巴鼻子的部分。开始画耳朵,画耳朵的长度。

画尾巴的基本形状,根据皮卡丘尾巴的造型,画几条平行线,尾巴末端有一条反向的较长的线

各种辅助线搭建的草图终于完成啦!可以下记号笔勾轮廓了。

7、如何画卡通皮卡丘

卡通皮卡丘的画法如下:

1、开始画出皮卡丘的脑袋,这个角色比较萌,我给它画了一顶帽子。

2、脑袋画上好了,我们接下来画出皮卡的身体。

3、接着画上手、脚,还有最特别的闪电一样的尾巴。这样皮卡丘的简笔画线稿就完成了。

4、接着,我们用马克笔涂上黄色与红色。

皮卡丘是一只矮矮胖胖圆乎乎的类啮齿型宝可梦,全身的皮毛都是黄色的。它的耳朵很长,尖端是黑色的。它有小小的嘴巴,侧面看起来像一个数字3,还有黑色的眼睛。它的脸颊上有两个红色的圆。它的尾巴是像锯齿状的闪电,与身体相接的部分也有一片棕色的皮毛。

尽管它确切来说是四足动物,更多时候它是站着并用两只后脚走路。住在森林中的它们通常以树果为食。它们用小小的电击把树果从树上打下来,这样就不必爬树,还可以顺带将其烤熟。

野生的皮卡丘大多群体行动,很少固定在一个地方。皮卡丘的听力很好,这得益于它的大耳朵。许多家养的皮卡丘可以理解并演绎出人类的话,甚至比大多数宠物狗做得更好,所以皮卡丘更受人欢迎。

8、皮卡丘怎么画的

皮卡丘的画法:

工具/原料:彩色画画笔,铅笔,橡皮擦,画笔

方法1

1、首先用线条勾勒出皮卡丘的脸颊。

2、在头部两侧画出皮卡丘长长的耳朵。

3、画出大大的眼睛留出高光部分。

4、画出皮卡丘微笑着的嘴巴。

5、用线条装饰一下耳朵上的纹理。

6、向下画出皮卡丘的两只手臂。

7、我们画出皮卡丘的一只脚。

8、然后勾勒出皮卡丘胖胖的身体。

9、再画出皮卡丘的另一只脚。

10、在身体后面画上大大的尾巴。

11、最后就可以给皮卡丘涂上漂亮的颜色了。

猜你喜欢

转载自blog.csdn.net/mynote/article/details/128805987