下部には(2
、3
など)をスキップしていますが、その理由はわかりません。Pythonが無視されている場合
print("Starting game.")
print("Game Started.")
print('\n')
CharName = input('Create a character name: ')
print('\n' * 20)
print('Class Selection: (Ensure it as written as you read it)')
print('\n')
print('Classes:')
print('[1] Heavy')
print('[2] LightFooted')
print('[3] Warrior')
print('\n')
print('To Come:')
print('Stealth')
print('\n')
Ctype = input('Choose class: ')
if Ctype == 1:
print('test')
if Ctype == 2:
print('test')
if Ctype == 3:
print('test')
if Ctype == 4:
print('Try again... another time.')
time.wait(2)
'入力は()'文字列を返します、あなたはそれらの – PRMoureu
の1が入力文字列と '「1」で変換し、整数に比較! = 1 ' –
(少なくともPython3では) – jedwards