Python
HellowZheng
不是飞友的程序猿不是好学生
展开
-
python--骷髅头vs.太极图
这几天闲的没事干(居家隔离),随便编了两个代码。原创 2022-11-12 10:54:16 · 400 阅读 · 0 评论 -
Python--海龟先生送给大家的海草舞
海龟先生对你说:helow原创 2022-07-20 19:03:35 · 213 阅读 · 0 评论 -
Python--Turtle钟表
Python--海龟钟表原创 2022-07-19 18:14:07 · 528 阅读 · 0 评论 -
Python解压小乌龟
今天给大家带来一个解压小乌龟!!!!二话不说,上代码(整活):import randomimport turtle as timport time as tit.colormode(255)t.pensize(4)t.speed(0)red = 0blue = 0green = 0while True: for i in range(1,20): red = random.randint(0,255) blue = random.rand原创 2022-05-28 10:32:11 · 92 阅读 · 0 评论 -
Python游戏——Pong
大家还记得小时候玩的游戏——“Pong”吗?今天,我们使用Python还原这个经典游戏。整活!from turtle import Screenimport turtle as timport timet.tracer(0) #加速画图#屏幕左边side = 400top = 300#创建小球ball = t.Turtle()ball.penup()#抬笔,移动中不留下痕迹ball.shape("circle")ball.color("darkorange")ball_x原创 2022-05-16 12:33:24 · 545 阅读 · 1 评论