Skip to content

Dannyzn/python-deep-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

python-deep-learning

环境配置

 -  Python 3.x
    -  curl https://bootstrap.pypa.io/get-pip.py | python3

 -  库文件
    - [Anaconda](https://www.anaconda.com/download/) 
         * NumPy
         * Matplotlib

基本学习

    -  [Python基础]
          -  不同版本
             -  python2.x
                -  整数/整数 = 整数
             -  python3.x
                -  整数/整数 = 浮点数
                -  针对于数值的运算符
                   -  — / + * 
          -  数据类型
             -  data type
                -  type() 函数可以查看数据类型
          -  变量
             -   python 是一种动态语言
                 -  python中变量不需要声明
                 -  python中变量不需要类型
                 -  python中变量不需要初始化
                 -  python中变量不需要定义
                 -  python中变量不需要赋值
          -  列表
             -  元素的访问可以通过 a[0]来 访问
                 -  []中的数字称为索引
              -  python列表 中提供了 切片的标记法
                 -  使用 切片标记法 
                    -  可以访问列表中的一部分元素
                    -  还可以列表的子列表
         -  字典
            -  字典是一种映射类型
               -  类似于 map / object for JS
               -  以键值对的形式存储数据
         -  布尔值
            -  True
            -  False
            -  针对于 布尔值的运算
               -  and
               -  or
               -  not

         - if 语句
            -  if 条件:
               ```hungyr = True
               if hungry:
                  print('I am hungry')
                ```  
               -  代码块
            -  if 条件:
               -  代码块
               ```
                 hungry = True
                 a = False
                    if hungry:
                        print('I am hungry')
                    elif (a === hungry) {
                        print('I am hungry')
                    } else {
                        print('I am not hungry')
                    }
               ```  
               -  elif 条件:
                  -  代码块
               -  else:
                  -  代码块
         -  for 循环
               -  for 变量 in 列表 / 字典:
                  -  代码块
                 -  for 变量 in range(10):
                    -  代码块
                ```
                   for i in [1,2,3]:
                        print(i)
                ```     

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published