exe creato usando cx_freeze non funziona correttamente
-
30-10-2019 - |
Domanda
use=input('what do you wanna do \n1.press w to create a new file\n2.press r to read a file:\n')
if use=='r':
read()
elif use=='w':
write()
else :
print('OOPS! you enter a wrong input\n')
user()
Quando eseguo questo codice utilizzando Idle, esegue correttamente ma quando ho creato un EXE di questo file Python usando CX_Freeze, le condizioni IF ed Elif non funzionano rispettivamente per "R" e "W". Per qualsiasi input va sempre all'istruzione Else.
Sto usando Python 3.2 e CX_Freeze 3.2
Nessuna soluzione corretta
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow