Lv.1
哈喽!
在 编程猫搓头 中回复
imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.cod喵/emotion/thunder_monkey/%E6%91%87%E6%A4%85%E5%AD%90240.gif"alt="emotion_雷电猴_摇椅子"imgsrc="https://static.cod喵/emotion/thunder_monkey/%E6%91%87%E6%A4%85%E5%AD%90240.gif"alt="emotion_雷电猴_摇椅子"imgsrc="https://static.cod喵/emotion/thunder_monkey/%E6%91%87%E6%A4%85%E5%AD%90240.gif"alt="emotion_雷电猴_摇椅子"imgsrc="https://static.cod喵/emotion/thunder_monkey/%E6%91%87%E6%A4%85%E5%AD%90240.gif"alt="emotion_雷电猴_摇椅子"imgsrc="https://static.cod喵/emotion/thunder_monkey/%E6%91%87%E6%A4%85%E5%AD%90240.gif"alt="emotion_雷电猴_摇椅子"imgsrc="https://static.cod喵/emotion/thunder_monkey/%E6%91%87%E6%A4%85%E5%AD%90240.gif"alt="emotion_雷电猴_摇椅子"
2021-11-07T13:09:00 点赞:0
在 新的表情包 中回复
imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/58/pig.gif"alt="emotion_猪头"
2022-01-03T12:18:15 点赞:0
在 【版本更新合辑】那些年Kitten更新过的那些功能~ 中回复
imgsrc="https://static.codemao.cn/emotion/star_cat/%E5%93%BC.gif"alt="emotion_星能猫_哼"imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/9d/sada_thumb.gif"alt="emotion_泪"
2022-01-24T12:30:56 点赞:0
在 kitten4 中回复
imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%BA%9C%E4%BA%86%E6%BA%9C%E4%BA%86.gif"alt="emotion_编程猫_溜了溜了"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E5%8E%89%E5%AE%B3%E4%BA%86.gif"alt="emotion_编程猫_厉害了"
2022-02-15T19:36:35 点赞:0
在 【Python作品分享】【120强进36】【作品秀】 中回复
import turtle
import time
import random
r = random
t = turtle
pen = turtle
t.hideturtle()
# 画太空
t.bgcolor("#000066")
#问题
i = 1
while i == 1:
ans = t.textinput("问题", "请输入宇航员手中的旗子的颜色:a红色 b黄色 c绿色 d橙色 e紫色")
if ans == "a":
color = "red"
i = 0
elif ans == "b":
color = "yellow"
i = 0
elif ans == "c":
color = "green"
i = 0
elif ans == "d":
color = "orange"
i = 0
elif ans == "e":
color = "purple"
i = 0
else:
print("请从选项中选择一项!")
print("OK!")
# (水瓶座)小星星
q = 0
t.pencolor('white')
t.penup()
t.goto(0,0)
t.pendown()
t.dot(10)
t.goto(0,80)
t.dot(10)
t.goto(80,110)
t.dot(10)
t.goto(160, 140)
t.dot(10)
t.penup()
t.goto(0,80)
t.pendown()
t.goto(80,50)
t.dot(10)
t.goto(140, 50)
t.dot(10)
t.penup()
t.goto(0,0)
t.pendown()
t.goto(-30, -30)
t.dot(10)
t.goto(-40, -70)
t.dot(10)
t.goto(20, -145)
t.dot(10)
t.goto(55, -90)
t.dot(10)
t.goto(130, -90)
t.dot(10)
t.goto(150, -100)
t.dot(10)
t.goto(190, -120)
t.dot(10)
#普通小星星(x:190以上或-30以下y:140以上或-145以下)
t.penup()
t.goto(260,200)
t.dot(10)
t.goto(-50, 190)
t.dot(10)
t.goto(-150, -260)
t.dot(10)
t.goto(100, -190 )
t.dot(10)
t.goto(-250, -250)
t.dot(10)
# 宇航员头盔
t.goto(-200, 200)
t.dot(130)
t.pencolor("gray")
t.dot(110)
t.goto(-180, 230)
t.pencolor("white")
t.dot(25)
t.goto(-185, 200)
t.dot(20)
# 面料
t.goto((-250), 135)
t.fillcolor("white")
t.begin_fill()
t.pendown()
t.goto(-150, 135)
t.goto(-150, 20)
t.goto(-250, 20)
t.goto(-250, 135)
t.end_fill()
# 拉链
t.penup()
t.pendown()
t.begin_fill()
t.fillcolor("gray")
t.goto(-205, 135)
t.goto(-195, 135)
t.goto(-195, 20)
t.goto(-205, 20)
t.goto(-205, 135)
t.end_fill()
t.penup()
#手臂
t.goto(-250, 110)
t.pendown()
t.pensize(20)
t.pencolor("white")
t.goto(-310, 140)
t.pencolor("tan")
t.dot(25)
t.penup()
t.goto(-150, 110)
t.pendown()
t.pensize(20)
t.pencolor("white")
t.goto(-90, 80)
t.pencolor("tan")
t.dot(25)
#裤子
t.penup()
t.pensize(1)
t.goto(-250,20)
t.pencolor("black")
t.pendown()
t.fillcolor("white")
t.begin_fill()
t.goto(-150,20)
t.goto(-150,-70)
t.goto(-250,-70)
t.goto(-250,20)
t.end_fill()
#鞋
t.pencolor("gray")
t.penup()
t.goto(-210,-70)
t.pensize(20)
t.pendown()
t.goto(-260,-70)
t.goto(-190, -70)
t.pensize(20)
t.pendown()
t.goto(-140, -70)
t.pensize(1)
t.pencolor("black")
t.penup()
t.goto(-200, 20)
t.pendown()
t.goto(-200, -81)
#氧气管
t.pencolor("white")
t.pensize(10)
t.penup()
t.goto(-135,200)
t.pendown()
t.goto(-85,200)
t.goto(-150,57)
#小旗子
t.penup()
t.goto(-310,140)
t.pencolor("black")
t.pensize(1)
t.pendown()
t.goto(-310,190)
t.fillcolor(color)
t.begin_fill()
t.goto(-270,190)
t.goto(-270,170)
t.goto(-310,170)
t.goto(-310,190)
t.end_fill()
#闪烁
t.penup()
x = 0
while x == 0:
t.goto(190, -120)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(150, -100)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(130, -90)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(55, -90)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(20, -145)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(-40, -70)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(-30, -30)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(0, 0)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(140, 50)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(80, 50)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(0, 80)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(160, 140)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(80, 110)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
t.goto(0, 80)
rr = r.randint(0, 5)
if rr == 0:
c = "red"
elif rr == 1:
c = "yellow"
elif rr == 2:
c = "pink"
elif rr == 3:
c = "blue"
elif rr == 4:
c = "white"
else:
c = "orange"
pen.pencolor(c)
time.sleep(0.5)
pen.dot(10)
turtle.done()2022-04-03T19:01:23 点赞:0