
Python 基础系列
文章平均质量分 85
Python 基础系列
wumingxiaoyao
做一个乘风破浪的QA,哈哈!
展开
-
Python 基础知识大纲
平时工作中,我就喜欢写些“葵花宝典”,总结和归纳一些知识点,有助于自身工作,也得到同仁们的肯定。所以一直有想开个博客的想法,直到2020中秋国庆双节,我开博了,哈哈!利用11天超长假日,我把Python基础知道撸了一遍,也供想系统学习Python的小伙伴参考一下。个人觉得Pyhon脚本语言易学,灵活,随着对它的了解,你一定会它的魅力所吸引。我列出的这些纲要,觉得对初学者还是有帮助的,系统了解Python基础知识,通过code实践加深印象,也有一些深入的研究和扩展,当然后续还会有一些进阶的知识整理,敬请期原创 2020-10-11 20:03:49 · 590 阅读 · 0 评论 -
Python 基础系列 1 - 环境准备 Anaconda 介绍
本文主要介绍 Python 运行环境准备,Anaconda 的介绍,想了解更多 Python 基础知识,请参考 [Python 基础系列大纲](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/109013933)原创 2020-10-02 20:47:51 · 461 阅读 · 0 评论 -
Python 基础系列 2 - 基础数据类型 Taxonomy of Built-in Abstract Data Types
很早发布的文章,Python 基础数据类型,主要是做个笔记,方便以后梳理一下,更细节内容请参考这篇 [初识 Python](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/122510303),更多 Python 基础系列文章,请参考 [Python 基础系列](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/109013933)原创 2020-10-06 12:08:26 · 235 阅读 · 0 评论 -
Python 基础系列 3 - 初识 Python
初识 Python,介绍 Python 语言的特点,对象,内置的抽象数据类型,强制类型转换,以及可变性和不可变性,对象标识符,同类异类对象等重要概念。原创 2022-01-16 20:04:52 · 727 阅读 · 0 评论 -
Python 基础系列 4 - 哈希值和可变性 Hash value and mutability
通过查阅一些资料阐述一下对 Python 编程语言中 哈希值 Hash value,可变性 mutability 的理解,以及通过 code 实例来验证__hash__和__eq__方法的深刻意义,对其它面向对象的语言也是相通的。原创 2020-10-04 14:34:36 · 862 阅读 · 2 评论 -
Python 基础系列 5 - Set 去重原理
在上篇文章《[哈希值和可变性Hash value and mutability](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/108912543)》最后说到 set 去重问题,所以这篇主要是通过实践来研究一下 set 去重背后的故事,当然也是参考了网上一些资料得到了一些启发,感谢那些陌生的喜欢分享的博友们。想了解更多 Python 基础序列文章,请参考 [Python 基础系列大纲](https://blog.youkuaiyun.com/wumingxia原创 2020-10-04 20:35:56 · 2859 阅读 · 0 评论 -
Python 基础系列 6 - 序列索引和切片访问 Sequence: Indexing and Slicing
本文主要介绍有关 序列 Sequence 的 Index 索引,切片访问,想了解更多 Python 基础系列文章,请参考 [Python基础知识大纲](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/109013933)原创 2020-10-06 12:09:08 · 742 阅读 · 0 评论 -
Python 基础系列 7 - 循环遍历 Iteration for while break continue
本文主要介绍一下 Python 的 for while 循环语句的使用,其中容易忽略的一个细节就是循环中 else 的使用,更多 Python 基础系列文章,请参考 [Python 基础知识大纲]a_list = [1, '4', 9, 'a', 0, 4] squared_ints = [pow(e,2) for e in a_list if type(e) == int]print(squared_ints) # output:[1, 81, 0, 16]names=['Bob',原创 2020-10-06 12:10:14 · 490 阅读 · 0 评论 -
Python 基础系列 8 - 函数 Function 基础知识
本文主要介绍一个 Python 中函数 Function 的基础知识点,更多 Python 基础系列文章,请参考 Python 基础系列内容提要:函数的优势函数是对象函数的类型函数参数变量的范围List 的拷贝 vs. 引用传递函数返回值函数规范原创 2020-10-07 15:02:36 · 1347 阅读 · 0 评论 -
Python 基础系列 9 - 函数和方法的区别 Functions vs. Methods
初学者包括本人在内对 Function 函数和 Method 方法容易混淆,所以特意花了点时间查阅相关资料梳理一下它们的区别,通过 Code 实践更能体会其中的不同。更多 Python 基础系列文章,请参考 [Python 基础系列大纲](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/109013933)原创 2020-10-06 16:20:54 · 684 阅读 · 0 评论 -
Python 基础系列 10 - 函数的默认值参数 Function Default Parameters
有关 Function 的默认值参数,会有一些坑,初学时容易中招和疑惑,所以花点时间研究一下,加深印象。更多 Python 基础系列文章,请参考 [Python 基础系列大纲](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/109013933)原创 2020-10-07 19:30:38 · 2776 阅读 · 0 评论 -
Python 基础系列 11 - Python 异常处理 Exception Handling
本文主要梳理一下 Python 异常 Exception 处理 ,更多 Python 基础系列,请参考 [Python 基础系列大纲](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/109013933)原创 2020-10-07 20:50:32 · 932 阅读 · 0 评论 -
Python 基础系列 12 - 文件读写 输入输出格式化 File I/O and Formatting
今天主要梳理一下 Python 中有关 File 的基本操作,通过实例来验证有关 File 各方法的功能,对文件操作的各种模式,异常处理,最后还涉及到有关 format() 的基本应用。更多 Python 基础系列文章,请参考 [Python 基础系列大纲](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/109013933)原创 2020-10-08 19:59:56 · 844 阅读 · 0 评论 -
Python 基础系列 13- 字符串 str
今天主要梳理了一下Python string 字符串的基本知识,更多 Python 基础系列文章,请参考 [Python 基础系列大纲](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/109013933) 。原创 2020-10-09 17:11:29 · 486 阅读 · 0 评论 -
Python 基础系列 14 - join() 应用
今天了解一下 **join** 的用法,主要有以下两种应用: 1.**“connector str”.join(seq)** 方法用于将序列中的元素以指定的字符连接生成一个新的字符串。2. **os.path.join()**: 将多个路径组合后返回想了解更多 Python 基础系列文章,请参考 [Python 基础知识大纲](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/109013933)原创 2020-10-09 20:13:05 · 420 阅读 · 2 评论 -
Python 基础系列 15 - 列表 list
今天来梳理一下 Python list 列表的知识点,更多 Python 基础系列文章,请参考 [Python 基础系列大纲](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/109013933)原创 2020-10-10 15:05:45 · 515 阅读 · 0 评论 -
Python 基础系列 16 - 元组 tuple
今天来梳理一下 Python tuple 元组知识点,更多 Python 基础系列,请参考 [Python 基础系列大纲](https://blog.youkuaiyun.com/wumingxiaoyao/article/details/109013933)。**内容提要:**1. Tuple 元组特性2. Named tuples3. Tuple 元组操作原创 2020-10-10 19:54:35 · 1276 阅读 · 0 评论 -
Python 基础系列 17 - 集合 set
今天来梳理一下 Python set 集合知识点,更多 Python 基础系列,请参考 Python 基础系列大纲 。原创 2020-10-11 12:02:24 · 487 阅读 · 0 评论 -
Python 基础系列 18 - 字典 dict
今天来梳理一下Python dict 类型的知识点,更多 Python 基础系列,请参考 Python 基础系列大纲内容提要:dict 特征dict 创建dict 操作dict 遍历dict 其它方法dict 性能dict 应用单词计数Google 搜索给页面打分原创 2020-10-11 16:49:08 · 783 阅读 · 0 评论 -
Python 基础系列 19 - 性能基准 Performance Benchmarking
今天梳理一下 Python list 列表,set 集合,dict 字典,tuple 元组对象各方法性能,使用时可作为参考,更多 Python 基础系列,请参考 Python 基础知识大纲。原创 2022-03-27 14:19:01 · 1036 阅读 · 0 评论