Day 1

python学习网 2018-10-01 16:22:05

1. variable

2. comments

  1) #

  2) ''''''   """"""

3. input

4. string formatting expressions

  1) '....%s...'%(values)

  2) '...{}...'  .format(values)

  3)  int( )  convert to integer

  4) str( ) convert to string

 

5. conditionals and logical operators

  1) if....else

  2) if .... elif...else

  3) while loop

  4) for loop

  5) break and continue

  

阅读(890) 评论(0)