내가 파이썬에서 텍스트 기반의 러시안 룰렛 게임을하고 있지만, 하나의 단지 내 코드를 보면 알 수 있듯이 나는 거의 완성하지 않다 : 경우에도, 어떤 이유파이썬 if 문
#!/usr/bin/env python
print("The maximum number of bullets is 3")
bulletcounter = input("How many bullets do you want your gun to have?")
print(bulletcounter, "bullets")
paname = input("Enter Player 1's Name: ")
pbname = input("Enter Player 2's Name: ")
print(paname.capitalize(), "Vs.", pbname.capitalize())
if bulletcounter == 1:
bulletcount = 0
print(bulletcount)
bulletaloc = random.randint(1, 6)
while bulletaloc != bulletcount:
bulletcount += 1
사람 bulletcounter에 1을 입력하면 "if bulletcounter == 1"if 문을 트리거하지 않습니다. 어떻게 내가 if statment를 트리거하게합니까 ???
어떤 특정 동작으로 인해'if' 문이 실행되고 있지 않다고 생각합니까? – paxdiablo