zoukankan      html  css  js  c++  java
  • python入门学习

    最近完成了Python的入门学习,在此做一个总结。(安装啥的就省去了,so easy.)

    在这里一些名词结合Java中的语法进行对标说明一下。

    -------------------------------我是华丽丽的分割线-------------

    1. variables and Exceptions 变量和表达式
    2. Conditional Code 条件
    3. Functions 函数
    4. Loops and Iteration 循环和迭代
    5. Strings 字符串
    6. Files 文件
    7. Lists 集合
    8. Dictionaries 字典
    9. Tuples 元组

    -------------------------------------------------------------------

        一、variables and Exceptions 变量和表达式

    -------------------------------------------------------------------

    1,python的保留字

     关于什么是保留字,今天看到一个很好的比喻,在这里写一写
    
    当我们训练一个dog的时候,我们用一些特别的词'sit','stay','fetch','walk'
    
    如果你对你的狗说,'I wish more people would walk to improve their overall health'
    
    你的狗听到的是这个样子的'blah blah blah blah blah walk blah blah blah blah blah'
    
     因为walk是狗的语言中的保留字 

    2,变量命名规则

      1)必须以字母或者下划线(_)开头  

      2)只能是字母,数字,下划线组成

      3)大小写敏感

    3,数学表达式

      

  • 相关阅读:
    vi 或 vim 常用命令(简单够用了)
    linux 常用命令
    ssh连接远程linux服务器
    tomcat优化系列:修改运行内存
    html学习笔记二
    html学习笔记一
    我的subLime的快捷键
    CentOS tomcat 安装与自启动
    CentOS 安装jdk-8u111-linux-x64.tar.gz方法
    CentOS 6 默认启动进入 图形或命令窗口
  • 原文地址:https://www.cnblogs.com/yimiyan/p/5889949.html
Copyright © 2011-2022 走看看