Directory
- First, Python study preparation
- Second, Python variables
- 1. Variables
- 2. Assigning values
- 3.Python value
tags (space delimited): Python Language machine learning
Preface: Learn Python through a three-day study and apply it normally. Learn a language remember to cut around, to find a tutorial, fast over, to learn and efficient.
First, Python study preparation
The so-called Integrated development Environment (Integrated development environment), which is what we often hear about the IDE, can be understood as a software that makes a language more comfortable, with debugging, compiling, and correcting functions. Write Python I recommend the IDE developed by JetBrains company Pycharm . Download link: Pycharm download link. I did not use pycharm at the beginning of the python, but also to enter instructions to compile the program, but since the use of Pycharm, just click the Run button on the page to compile, run, when you are in the code, it will remind you in real time whether there is a write error.
After installing Python3.4 you can open IDLE and tap some simple commands.
Second, Python variables
The main story is about variable names, numbers, and characters. Basically, there is no big discrepancy between C + +.
Just a rough introduction.
1. Variables
Variable names are case-sensitive, and name and name are not the same.
2. Assigning values
One of the advantages of Python is that we don't have to specifically emphasize what type of variable it is (integers, floating-point numbers, or other types), and the Python compiler automatically detects subsequent data to infer the type, without knowing what integers, floating-point numbers, and string students are, I'll cover the differences in these data types in the later articles.
Print ("Line 6 & 7") Display printing commands
3.Python value
Addition: +
Subtraction:-
Multiplication: *
Division:/
Division (takes only the whole part)://
Remainder:%
exponentiation: * *
Order of operations, that is, the sign > Powers > Multiplication to take the remainder > Add and subtract, and the sibling operations in the order from left to right
Python markdown Experiment