Pycharm experience (3) Helloworld!

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.