zoukankan      html  css  js  c++  java
  • Day1基础知识与循环

    一、简单的了解Python的发展史,以及3.0的安装。

    二、hello world的编写

      print("hello world!")

    三、变量

       name = esther

      name2 = name

      pinrt(name,name2)

      name = lily

      pinrt(name,name2)

    此时的结果应为

        esther esther

        lily esther

    注:name2是直接指向的name里的内容而不是name这个变量,所以name里面内容的变更与name2无关。

    四、if/else语句

      if i < 3 :

        print ("littler")

      elif  i>5 :

        print ("bigger")

          else :

        print (i)

    五、循环语句

    1、for循环

     

    2、while循环

     六、break与continue

    break:结果本次循环,直接到循环开始处。

    continue:继续到循环开始处。

        

  • 相关阅读:
    springmvc的注解式开发
    springmvc
    spring整合Mybatis
    spring的事务管理
    注解定义增强的两个方法
    动态代理
    错题解析
    SpringMVC的基本操作
    Spring整合MyBatis
    配置事务以及事务回滚
  • 原文地址:https://www.cnblogs.com/Esther2016/p/6230134.html
Copyright © 2011-2022 走看看