0 Basic Introductory Learning python[Little Turtle]--so happy to start. 01

Source: Internet
Author: User

1. starting Python from Idie

Idle is a python shell,shell meaning "shell", which is basically a way of interacting with the program by entering it. Windows like the cmd window, like the Black Command window of Linux, are all shells and can be used to give commands to the operating system. Similarly, you can use the idle shell to interact with the Pytho.

>>> This prompt means: Python is ready, waiting for the Python command to be entered;

baishuchaodemacbook-pro:~ xcn$ Python3.5python 3.5.2rc1 (V3.5.2RC1:68FEEC6488B2, June, 21:59:53) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on Darwintype ' help ', ' copyright ', ' credits ' or ' license ' for more information.>>>

2. Try something new

Try something new, enter print (5+3) in idle, or enter 5+3 directly

>>> print (5+3) 8>>> 5+38

It looks like Python will do the addition! That's not surprising, because computers are used to calculate when they start, and any programming language has computing power, so let's look at Python's calculations.









0 Basic Introductory Learning python[Little Turtle]--so happy to start. 01

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.