Pycharm installation and Practice

Source: Internet
Author: User

PyCharm Introduction

PyCharm is a Python IDE with a complete set of tools to help users improve their efficiency when developing using the Python language, such as debugging, syntax highlighting, Project management, code jump, smart prompts, Automatic completion, unit testing, and version control. In addition, the IDE provides some advanced functions to support professional Web development under the Django framework. For more information, see (http://baike.baidu.com/view/8263182.htm? Fr = aladdin)

URL: http://www.cnblogs.com/archimedes/p/pycharm-test.html.

First, preview the PyCharm interface in practical application:

Install PyCharm

First download pycharm 2.7.3 and install it (you can download it directly from the official website)

PyCharm activation method:

  • We recommend that you purchase genuine.
  • You can choose to try it for free for 30 days.
  • Online activation code:

(The following activation code comes from the Internet and is only used for learning and communication)

User name:Yueting3527

Key:

93347-12042010
00001 FMHemWIs "6wozMZnat3IgXKXJ
2! NV2I6kSO48hgGLa9JNgjQ5oKz1Us
FFR8k "nGzJHzjQT6IBG! 1fbQZn9! Vi

First use

1. Click Create New Project.

2. Enter the project name, path, and select the python interpreter. If the python interpreter does not appear, go to step 3.

3. Select the python interpreter. As you can see, once the python interpreter is added, pycharm will scan the python extension packages you have installed and the latest versions of these extension packages.

4. Click OK to create an empty project that contains a. idea folder for pycharm project management.

5. Okay. Write a new project and try pycharm!

Use PyCharm

As the starting point of the PyCharm Editor, first write a Hello world and run it.

1. Create a new file

Right-click the created Pytest project and choose New --> Python File

2. Input File Name

3. Enter the compiling Interface

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 world! "

4. 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)

5. On the Run/Debug Configurations configuration page,

Click the green plus sign to create a configuration item and select python

On the configuration page on the right:

Click the Scrip option and find helloworld. py we just wrote.

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:

 

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.