I am new to programming, especially Python. I am trying to make an application that converts Fahrenheit to a target, but I do not know how to make the program open. Whenever it reaches the end of the code, it automatically closes before the user can see its results. I am using Python 2.6.
Well, I think you mean the terminal that Windows opens for you, when you run the python file, it closes too quickly. You can add raw_input('Press Enter to exit')right before the exit of your program. It tells Python to wait for input before exiting.
raw_input('Press Enter to exit')
, , . , Python - Windows. IDLE IDE ( ), script, , F5. , , , . , Python.
, IDLE, .
Take a look at this question that solves this problem on Windows, and I assume this is your platform.
ask the user to enter another variable and type "Press enter to exit ..."
Source: https://habr.com/ru/post/1734172/More articles:Pdf на веб-странице: лучшее решение - phpRegister assemblies used in the SQL CLR stored procedure - sqlHow can I diagnose problems with Perl getc? - perlSafari displays javascript source instead of execution - javascriptHow to convert NSMutableString to double for storage in Core Data? - doublesymbolicatecrash не нравится мой файл dSYM - iphoneАвтоматическая капитализация UIKeyboardTypeNamePhonePad - iphoneInterview Question - C # - c #line overflow detection in C - cHow to dynamically read RSS - javascriptAll Articles