Python, python3
When I learned this day, I saw the python-I filaname command. The book says that this command can be used to execute the code in the filename file. However, an error is reported during use today. The problem is solved only after multiple tests.
It turns out that this command cannot be used in the pathon ide and is used in the console.
1. The Prime Minister created the aa. py file in C: \ Users \ Administrator \ Desktop \ python with the following content:
A = 1
B = 2
Print ('a + B = % d' % (a + B ))
2. log on to the console, go to the directory aa. py (you must enter the directory of the file, or the system cannot find the file), and enter python-I aa. py. The interface outputs the result.
3. Now we have entered the python editing mode. We can continue to execute the python command:
4. Enter exit () to exit python Editing: