Python beginners and python beginners
#! /Usr/bin/env python
#-*-Coding: UTF-8 -*-
# The above is the beginning of the configuration compiling environment
# The first line env indicates the python version (2.x or 3.x) in the current environment variable)
# The second line indicates that the encoding format is UTF-8, which supports Chinese comments or Chinese output of strings (supported by default above 3.x)
Print 'Hello world' # print the first simple code hello world
Print ('Hello World') # Add () to the print statement above python3.x to indicate that it is similar to some languages such as java.
Print 'Hello \ nworld' # Add \ n to print to indicate a line break, which is similar to entering the Enter key when you input the txt text.
Print ('Hello \ tworld') # in print, \ t represents the split string, similar to adding tab or space spacing in the middle.
When print '\ "' # print special character backquotes", add a backslash \ To tell the compiler to recognize it.
Print "\" # Same as above
Print """
What's your name
My name is Cookie
Tanks Watching
"""
# A tip for printing. Three double quotation marks (single quotation marks) can be printed as user input, similar to txt text.
# New Recommendations PyCharm + windows system + installation python-x86-install, 32-bit installation package (64-bit System Support) Many python third-party applications 32-bit to find
# Python Official Website: https://www.python.org/official Third-Party Library: https://pypi.python.org/pypi
# Print the result as follows: