Okay, firstly, what are you talking about? Are you using Notepad to save your python files and that is stuffing up?
Are you using IDLE and that wont save?
Have you got a save box in your program that stuffs it up?
Please provide more information, otherwise its hard to help
I think he's talking about saving a python script and then double-clicking the file to launch it. The command dialog is closing once his program exits.
To avoid this, it is best to run the program from the terminal/cmd window
If your program has no errors and you need to verify some output, a line at the end raw_input( 'Press Enter to quit...' ) will make the program hang until the user hits 'Enter'; however if your program has an error and doesn't make it to this line, it will still close.
That is why it is best to run from the command line, or use an IDE that allows you to run your script inside the interpreter.
Just in case you dont usually run it from the command line (maybe you just double click). Here is how you would do it on windows:
First go to the start menu and choose run
using the 'cd' (change directory) function navigate to the place that your python program is in
then write in the following: python name_of_script.py
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.