Joke Collection Website - Bulletin headlines - How to write the coordinates of two points in python
How to write the coordinates of two points in python
PythonCMD command line; Windows operating system
Methods/steps
1. Download and install python first. It is recommended to install version 2.7 or above and version 3.0 or below. Because version 3.0 or above is not backward compatible, the experience is very poor.
2. Open a text editor and recommend editplus, Notepad, etc. , and save the file in. Py format. Editplus and notepad support python syntax recognition.
The first line of the script must be written with #! usr/bin/python
Indicates that the script file is an executable python script.
If the python directory is not in the usr/bin directory, it will be replaced with the directory of the current python executor.
3. Pay attention to debugging after writing the script, and you can debug it directly with editplus. Debugging method can be Baidu. When the script is finished, open the CMD command line, provided that python has been added to the environment variable. If not, please Baidu.
4. In the CMD command line, enter "python"+"space", that is, "python"; Drag the written script file to the current cursor position, and then press enter to run.
- Related articles
- How to shout the slogan of tug-of-war
- Review the opening remarks of the first meeting.
- JJ Lin commented on G.E.M.'s high notes, but was ridiculed as "Keyboard Man". What happened?
- Promotional slogan for summer tutoring class enrollment activities
- The latest discussion on how to improve ideological and political education in vocational education
- "What is the idiom at the beginning of Chongqing?
- I don't cherish ancient books when I first read them. If you cherish them, you must go to the Supreme Court.
- What does it mean for party building to build financial inclusion?
- Safety slogan of mine adit mouth
- Construction project slogans