Fortune Telling Collection - Fortune-telling birth date - How does Python write scripts?
How does Python write scripts?
1. Download and install python first. It is recommended to install version 2.7 or above.
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 marked with #! Usr/bin/python, indicating that the script file is an executable Python script. If your python directory is not in the usr/bin directory, please replace it 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.
4. Enter "python"+"space" at the CMD command line, that is, "python"; Drag the written script file to the current cursor position, and then press enter to run.
- Related articles
- When will Kang Million Manor open?
- I took a bus to Yi Yin Mall at Longwang Temple.
- Tengxian Fortune Teller _ Guangxi Fortune Teller
- Shave off your pubic hair, okay?
- Why did Liu Bowen give up Dayuan and go to Zhu Yuanzhang?
- How to calculate what the five elements lack?
- Fortune teller, please come in. I asked once last year.
- I have met paranormal twice in the past twenty years.
- What kind of dog is Hal?
- Dreaming that you are in a cave-a sign of the past