As the starting point of the PyCharm editor, we naturally write a Helloword and run it first. (This article is intended for beginners who are not familiar with IDE) 1. create a new project
File --> New Project...
2. create a new file
Right-click the created helloWord project and choose New --> Python File
3. enter the file name.
Enter the file name.
4. go to the editing page.
The default editing interface of PyCharm is very strange. a line of _ author _ = "author" header is automatically generated. The commonly used file headers, such as # coding = UTF-8, are not automatically generated.
Input code:
Print "Hello word! "
5. set the console
Before running, we found that the "run" and "debug" on the shortcut menu were gray and could not be triggered. Because, we need to configure the console first.
Click the black inverted triangle next to running to go to the "Run/Debug deployments" configuration page. (Or click Run --> Edit Configurations)
On the Run/Debug Configurations configuration page,
Click the green plus sign to create a configuration item and select python. (Because hello word is a python program)
On the configuration page on the right:
Name in the Name column, such as Hello
Click Scrip to find hello_word.py.
Click OK to return to the editing page automatically. at this time, the "run" debugging "button turns green!
6. run
Click the green run button to view the output:
OK, the first show of PyCharm is complete!