用户:
现在网名真难起查看:0 回复:2 评论:0 创建时间:2021-08-29T09:14:55
【作品展示】

【作品介绍】
像不像(没棍子的)棒棒糖?
【作品源代码】
import turtle
p = turtle.Pen()
a = int(input('靶子大小:'))
if (a > 825):
print('靶子太大,可能显示不全')
for i in range(a // 50):
p.dot(a, 'red')
a -= 20
p.dot(a, 'white')
a -= 30
p.dot(a, 'red')
p.hideturtle()
turtle.done()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn
现在网名真难起imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%BF%BB%E7%99%BD%E7%9C%BC.gif"alt="emotion_编程猫_翻白眼"
点赞1
评论