Python portal, print, basic data, variables
- Where does the code begin?
(1) Python is executed from the time the first script is loaded.
Python test.py
(2) In the script to call the other script inside the code and data
Related code, put it in a. py file, irrelevant to the different. Py, a. PY can call other. PY, complete organized and disciplined organization
2.print function
(1) is an important system function
Print ("Hello world!!", "I am xxxx", 456, 36.7);
(2) The parameters can be any type, any number, passed to the Print,print function will be any number of parameters printed out, the logic implementation of print, is provided by Python internal
(3) printing more than one data, can be separated by commas
- Basic data
(1) Base number: integers, decimals
(2) String Object "Hello"
(3) Basic numbers can be used in mathematical operations
(4) Parentheses can change the precedence of mathematical operations
(5) No brackets with curly braces, only parentheses
(6) The string is added to the string to get the stitched string
Python portal, print, basic data, variables