用户:
Metre-01查看:0 回复:0 评论:0 创建时间:2021-06-19T18:16:18
【作品展示】

【作品介绍】
嘿嘿
【作品源代码】
x = round(float(input('Type a number: ')))
if (x < 2):
x = 2
elif (x > 100):
x = 100
else:
pass
for __count in range((x - 1)):
print(x, 'apples are in the plate.')
print('take one apple and eat it:')
print('"mmm, yummy!"')
x -= 1
if (x == 1):
print('one apple is in the plate.')
else:
print(x, 'apples are in the plate.')
print('one apple is in the plate')
print('take one apple and eat it:')
print('"mmm, yummy!"')
print('There are no apples in the plate.')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn