我试图做一个护理程序,它似乎是出于某种原因我的程序不断即使它应该循环。它工作得很好,直到1加他youGot变量。不够的话,那么:为什么我的Python程序不断循环,即使它应注意什么?
Lorem存有胡萝卜,生态番茄汤。和任何元素LOREM。但是现在生活的笑声,这是创新的有针对性的执法质量。温暖的沙拉食谱或悲伤的质量ultricies等。然而,房地产毕业巴基斯坦,其接收宏层。 Dapibus拉克丝eleifend Phasellus油树。南明智的,谁已经有针对性的足球,足球的质量。 DUIS facilisis facilisis lectus,为了生命的拉动,很多伟大的事情。
import random
#generate numbers
spinTime = float(random.randint(7, 18))
actualSpin = 0
while(actualSpin != spinTime):
print("""
B 7 @
% # +
$ J & """)
actualSpin += 1
youGot = "Nothing"
print(" \n"*100)
print("""
7 7 7
# $ J
& % & """)
actualSpin += 1
youGot = "7"
print(" \n" * 100)
print("""
7 % 7
B B B
& % & """)
actualSpin += 1
youGot = "Bar"
print(" \n" * 100)
print("""
$ # &
% % %
J J & """)
actualSpin += 1
youGot = "%"
print(" \n" * 100)
print("""
7 + 7
# $ J
# # # """)
actualSpin += 1
youGot = "#"
print(" \n" * 100)
print("""
7 $ %
+ + +
B B + """)
actualSpin += 1
youGot = "+"
print(" \n" * 100)
print("""
7 $ %
& & &
B % + """)
actualSpin += 1
youGot = "&"
print(" \n" * 100)
print("You got a:",youGot)
的有字的最低金额做出后的一点是要确保正确解释你遇到你已经尝试解决什么问题,。 – TigerhawkT3 2015-04-02 19:10:25