Use of the "Python Route 6" Pycharm

Source: Internet
Author: User

1, Pycharm Introduction

Pycharm is a better one in my many Python editors. And you can cross-platform, both MacOS and Windows can be used, this is better.

Pycharm is a Python IDE with a complete set of tools to help users improve their efficiency when developing with the Python language, such as debugging, syntax highlighting, project management, code jumps, smart tips, AutoComplete, unit tests, versioning. In addition, the IDE provides advanced features to support professional web development under the Django framework.

First, Pycharm is used in general IDE features such as debugging, syntax highlighting, project management, code jumps, smart tips, AutoComplete, Unit testing, versioning in addition, Pycharm provides some great features for Django development, while supporting Google APP Engine, even cooler, Pycharm supports IronPython. 2, Pycharm installationCan be downloaded to the official website: http://www.jetbrains.com/pycharm/Be sure to download the development-specific version: Python IDE for Professional developers installation step, just press the next step directly on the line. 3, the main setting of Pycharm 1) Create a project

2) Create Python file

3) automatically joins the header file, such as automatically set the path and UTF-8 encoding in Linux

File-->settings...-->editor-->file and Code Templates-->python scripts

In the box above, type:

#!/usr/bin/env python#-*-coding:utf-8-*-

4) Adjust font

File-->settings...-->editor-->colors&fonts-->font--> Click Save As, OK, then size becomes editable, adjust the number of size, Finally click Apply, click OK

5) How the program runs

A, click View-->tollbar, will bring up the Tollbar tool bar,

Select the python file you want to run, and click the Run button.

b, right-click on the left side of the project file to run

C, after running once can be directly in the Results display window click the Run button

D, you can right-click in the blank of the edit bar, and then tap Run item

6) Toggle Python version

First install the python2.x and python3.x, note if the Pycharm open to install another version needs to restart the next pytcharm, so pycharm reload into the new version

File-->settings...-->project:2-->prioject interpreter, then select the appropriate version

7) View the source code of the class or function

In the Code Editor, enter STR, press and hold CTR and click str, will automatically jump to the Str class source code, the source will have a more detailed description and help information, click the left button will list the corresponding function

For example, a list of functions of a class

Use of the "Python Route 6" Pycharm

Related Article

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.