Git Product home page Git Product logo

study-python's Introduction

study-python

介绍

Python语言学习 DEMO

包目录结构说明

chap1:
demo.py  -- print 使用demo
demo1.py -- 转义字符
demo2.py -- Unicode
demo3.py -- Python 中的 保留(keyword) 关键字
demo4.py -- 变量的定义及使用  对应内存id, 变量类型
demo5.py -- 基础数据类型 demo   int / float / bool / str
demo6.py -- 不同数据类型拼接/ 数据类型转换
demo7.py -- 注释的使用  + 文件编码注释(文件第一行,默认为 utf-8)
chap2
01_input_1.py  -- 输入函数 input
01_input_2.py  -- 输入函数 input , 数据计算
02_calc_1.py   -- 运算符 加 减  乘 除、整除  取余  次方
02_calc_2.py   -- 运算符 整除  取余  一正一负情况
03_set_1.py    -- 赋值运算符 - 执行顺序,从 右 到 左
chap3
demo1.py  -- 比较运算符  大于、等于、小于、大于等于、小于等于、不等于、is、is not
demo2.py  -- 布尔运算符  and / or / not / in / not in
demo3.py  -- 位运算符  位与 &、 位或 | 、  左移位  << 、  右移位 >>
demo4.py  -- 运算符的优先级
chap4
demo1.py  -- 程序的组织结构  - 计算机的流程控制: 顺序结构
demo2.py  -- Python 中一切皆对象,所有对象都有一个布尔值
demo3.py  -- 程序的组织结构  - 计算机的流程控制: 选择(分支)结构
demo4.py  -- pass 语句
demo5.py  -- 内置函数 range 的三种使用方法
demo6.py  -- 程序的组织结构  - 计算机的流程控制:循环结构
chap5
demoList.py      -- 列表对象的基本使用方法
demoListSort.py  -- 列表对象 - 排序
demoListFun.py   -- 列表对象 - 表达式创建(有规律的数据,可用表达式生成)
chap6
demoDic.py     -- 字典对象 - 基础使用
demoDicApi.py  -- 字典对象 - 字典常用方法
demoDicGet.py  -- 字典对象 - 取值
demoDicKey.py  -- 字典对象 - key的判断、新增、修改、删除

study-python's People

Contributors

xhal avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.