
Lv.1
?????
在 【Python作品分享】新型代码 坤坤代码【作品秀】 中回复
主代码:主要运行代码 蔡徐坤('你打篮球吗?') 只因('你打篮球吗?','询问打篮球吗',('打','不打')) 蔡徐坤('给你画个画') 肾虚(9999) for鸡脚inrange(0,100,1): 我割割.pencolor(变色龙变色细胞[鸡脚%4]) 你干嘛(鸡脚) 焯(90) imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"width="152"height="152" 附代码:将有关坤坤的文字转换成代码的代码 importturtle importeasygui 变色龙变色细胞=['red','yellow','blue','green'] 蔡徐坤=print 我割割=turtle.Pen() 篮球=input 只因=easygui.ynbox 你干嘛=我割割.forward 焯=我割割.left 肾虚=我割割.speed 全代码: importturtle importeasygui 变色龙变色细胞=['red','yellow','blue','green'] 蔡徐坤=print 我割割=turtle.Pen() 篮球=input 只因=easygui.ynbox 你干嘛=我割割.forward 焯=我割割.left 肾虚=我割割.speed 蔡徐坤('你打篮球吗?') 只因('你打篮球吗?','询问打篮球吗',('打','不打')) 蔡徐坤('给你画个画') 肾虚(9999) for鸡脚inrange(0,100,1): 我割割.pencolor(变色龙变色细胞[鸡脚%4]) 你干嘛(鸡脚) 焯(90) (顺序要一致,不然弄不成) (要用客户端海龟编辑器)
2022-10-04T00:04:25 点赞:0
在 Python 【turtle2库】重磅来袭!! 作者text4爆肝12小时 中回复
import turtle
p = turtle.Pen()
def turtle2十yc():
p.hideturtle()
def turtle2十tcs(ys):
p.fillcolor(ys)
def turtle2十xqyd(cd):
p.forward(cd)
def turtle2十yz(ds):
p.right(ds)
def turtle2十zz(dsz):
p.right(dsz)
def turtle2十tccd():
p.begin_fill()
def turtle2十tczd():
p.end_fill()
def turtle2十cx(cx):
p.pensize(cx)
def tz():
turtle.done()
def sd(sd2):
p.speed(sd)
def ydxy(x, y):
p.goto(x, y)
def turtle2十cf(长, 宽):
for i in range(2):
p.forward(宽)
p.left(90)
p.forward(长)
p.left(90)2023-03-26T10:45:52 点赞:0
在 Python 【turtle2库】重磅来袭!! 作者text4爆肝12小时 中回复
import turtle
p = turtle.Pen()
def turtle2十yc():
p.hideturtle()
def turtle2十tcs(ys):
p.fillcolor(ys)
def turtle2十xqyd(cd):
p.forward(cd)
def turtle2十yz(ds):
p.right(ds)
def turtle2十zz(dsz):
p.right(dsz)
def turtle2十tccd():
p.begin_fill()
def turtle2十tczd():
p.end_fill()
def turtle2十cx(cx):
p.pensize(cx)
def tz():
turtle.done()
def sd(sd2):
p.speed(sd)
def ydxy(x, y):
p.goto(x, y)
def turtle2十cf(长, 宽):
for i in range(2):
p.forward(宽)
p.left(90)
p.forward(长)
p.left(90)2023-03-26T10:50:08 点赞:0