Python_learning_1
the use of #
"""
"""
the type of boolean, string(within quotes)
the use of %, **, '\
to store strings a = "apple"[0]
the function of len(),lower(),upper(),str("n")
"Methods that use dot notation only work with strings."
"+" also can be used with strings, but take care of the space
"2" takes number into string
The % operator after a string is used to combine a string with variables. The % operator will replace a %s in the string with the string variable that comes after it.
how .format works
the upper use of %
datetime.now()
now.year now.month now.day can be used(the same goes on minute second hour)
Control flow
1.comparators
notice
2.not and or
3.if else
elif
评论