用户能够选择他们玩循环游戏的数量

2024-10-03 21:24:51 发布

您现在位置:Python中文网/ 问答频道 /正文

#Welcome Messages:
print 'Welcome To Rock Paper Scissors! '
print 'Game Settings:'
ammountofgames = int(input("How many games do you want to play?"))
#-------------------------------------------
#For Statement - Ammount Of Games
for i in range ammountofgames:

基本上,for循环不起作用,但我希望它能让用户选择他们想玩多少游戏,下面的脚本循环多少次。有人能帮我做这件事吗,但很可能有一个更简单的方法

是的,我的拼写很差


Tags: togameforinputsettingsmanyhowint