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