Python's first starter program

Source: Internet
Author: User

1 #!usr/bin/env Python32 3 #On Unix, when a program is referenced in the console, the first two bytes of the file are read in. If these two bytes are ASCII characters #!,4 #The Shell will assume that the file will be executed by the interpreter, and that the first line of the file specifies which interpreter to use, which is called the shebang line (shell execution)5 #if it exists, it must be the first line of the executable file, which is the recommended usage. 6 7 #in Windows systems, this first line is not required8 9 Ten #Note all starts with # and does not have a separate paragraph comment One ##注释的作用于一行 A  - #print function, two parameters are strings, the items are separated by a space when printing - #The last end parameter, which can indicate what string the line ends with. the #the next two lines will be printed on a per-statement basis, not automatically wrapped!  - Print('Hello',"world!", end='***') - Print("this is another line! ")

From Python3 Program Development Guide

Python's first starter program

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.