【python】99 Bottles Of Beer

【python】99 Bottles Of Beer,第1张

99 Bottles Of Beer

注意⚠️:无单复数
b = " bottles of beer on the wall"
for i in range(99):print(f"{99 - i}{b}, {99 - i}{b}.\n",f"Take one down and pass it around, 
{98 - i}{b}.\n" if i != 98 else f"Go to the store and buy some more, 99{b}.")

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/728902.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-26
下一篇 2022-04-26

发表评论

登录后才能评论

评论列表(0条)

保存