其他分享
首页 > 其他分享> > 判断令狐冲喝几杯酒

判断令狐冲喝几杯酒

作者:互联网

while True:
    cups=int(input('令狐冲喝了几杯酒:'))
    if cups % 3==2 and cups %5==3 and cups % 7==2:
        print('你说对了,他确实喝了{}酒'.format(cups))
        break
    else:
        print('再猜猜看')
        continue

在这里插入图片描述
在这里插入图片描述

标签:判断,format,令狐冲喝,猜猜看,print,cups,几杯酒
来源: https://blog.csdn.net/qq_53192220/article/details/121022507