is read this article to study: http://blog.csdn.net/chenguolinblog/article/details/11661233
It seems that I was self-taught 2 years ago, but I always have no decision ... It must be officially started today.
Don't say much nonsense, start:
S1:variables.
1 variables: A variable is a word, only a single value
2 Exercise: Set a variable my_variable, set the value to 10
my_variable=10
3 data types are interage, floats, Boolean 3
4 Python is a case-sensitive language
5 Practice
1 set the variable My_int value to 7
2 Set the variable my_float value to 1.23
3 Set the variable My_bool value to True
My_int =7my_float=1.23my_bool=true
6 Pyhton's statement is similar to English
7 Python inside declares the use of spaces in separate
8 Python is an interpreted language that executes immediately after writing.
9 The sign of a single-line comment is: #
Multiline Comment: "" "(content)" ""
There are 6 kinds of arithmetic operators +,-, *,/,** (power) in Python,%
S2 Tip Calculator
1 set the value of the variable meal to 44.50
2 Set the value of the variable tax to 6.75%
3 Set the tip value to 15%
4 Set the value of the variable meal to Meal+meal*tax
5 Set the value of the variable total to Meal+meal*tax
Python Learning DAY1