import random
print(' \t Welcome rolling dice game\n ')
while True :
input(' Press any key to roll')
roll=random.randint(1,6)
print(roll)
stop= input( ' you want to roll. again ? \n if yes then enter y \n if not then enter n\n ')
if stop=='y':
continue
elif stop=='n':
break
print(' Thanks for Playing:')
守候你守候我
相关分类