Installation and usage of Python and PyCharm (Mac version), pythonpycharm

Source: Internet
Author: User

Installation and usage of Python and PyCharm (Mac version), pythonpycharm

Last week, I chatted with a friend about how to learn Python. She also had this plan. By the way, I recommended a book "programming tips: 1st Python Beginners". after I pushed it to the Kindle, I read it at will. The terms are plain and concise and easy to understand.

When I made a selection in the R language and Python language, I read some comments from others on the Internet, and asked some companies which language they are using. Later I decided, which language can be chosen based on my favorite teaching materials, which will increase the enthusiasm and sense of achievement during the initial study.

I will not go into details about Python here,It is mainly used by data analysts, website backend programmers, game developers, automated testing, and automated O & M personnel.Crawlers can crawl and process information, develop websites, and pack other languages.

I use Mac, so I will mainly talk about the Mac version.

Python installation and use:

1. Go to the Python official website, click the link to the right of Latest to enter, find the Files at the bottom, and download the appropriate installation file. I installed Python3.6.0.

 

2. After downloading the SDK, double-click it and click continue to complete the installation.

3. Open the Mac terminal, enter "python3", and press enter to check whether the Python version is installed by yourself. (If the Mac system version is 10.8-10.11, Python2.7 is provided by default ). After entering Python3, You can see [>>], which indicates that it is already in the Python interaction environment and can be used normally.

Appendix: How do I check whether my Mac is 32-bit or 64-bit?

Click the apple icon in the upper-left corner-about local machine-system report-preference settings panel.

 

Install and use PyCharm:

After installing the Python environment, you also need to configure a programming tool. The author recommends PyCharm.

Click download now on the PyCharm official website and you will see the Professional Edition and Community edition. The Community edition is free of charge and you can use the Community edition.

I used the cracked version of Professional 2016.2 at http://www.sdifenzhou.com/phpstorm201623.html.

The installation method can be found in his blog and described clearly. I personally like his blog very much. It is simple and generous. It is very convenient to install many cracked versions of Mac software.

After installing PyCharm, we will briefly introduce how to use it:

1. Open the installed PyCharm and create a project. You can change the name after the path in the first line. In the second line, you can select the Python version you want to use and create.

2. Right-click after the creation (I set my Mac to a similar operation habit as Windows), and create a Python file and compile it.

3. If the default color font is inappropriate, you can modify it in [PyCharm -- Preferences -- Editor -- Colors & Fonts. The default editing area is white. If you want to change it to another color, you can change it in General.

The default Font size is relatively small. If you need a larger Font size, you cannot modify the Font size on the [Font] operation interface. You need to Save As your own Font subject and change the Font size.

After setting it according to your preferences, you can try to write and run it.

After writing the code, click "Run" on the top to Run the program. The system will prompt you which one to Run and select the one you want to Run.

After the first running, the running symbol in the upper right corner is changed to clickable. You can directly use the shortcut key control + R or click the run button to run the task.

This is a completely small tutorial. The Python Installation Method for Windows is slightly different, and others are similar. You can use Baidu on your own.

I will share what I will learn in the future. Currently, learning Python is just a form of entertainment for me. The compiled code, right or wrong, can be immediately displayed after it is run. If yes, the mood will be good.

If you are interested, you can try it.

----- End -----

Author: du wangdan, Public Account: du wangdan, Internet product manager.

 

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.