Fork me on GitHub

文章分类 -  python基础

摘要:转载自:https://www.cnblogs.com/lianzhilei/p/5770672.html 一、Python函数剖析 1、函数的调用顺序 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 # 阅读全文
posted @ 2018-09-22 07:45 replaceroot 阅读(73) 评论(0) 推荐(0)
摘要:Forward from:https://www.cnblogs.com/lianzhilei/p/5754810.html 一、 函数介绍 1、函数是什么? 在学习函数之前,一直遵循面向过程编程,即根据业务逻辑从上到下实现功能,其往往用一长段代码来实现指定功能,开发过程中最常见的操作就是粘贴复制, 阅读全文
posted @ 2018-09-20 22:27 replaceroot 阅读(73) 评论(0) 推荐(0)
摘要:Forward from: https://www.cnblogs.com/lianzhilei/p/5754069.html 一、字符编码与转码 1、bytes和str 之前有学过关于bytes和str之间的转换,详细资料-》bytes和str(第四字符串) 2、为什么要进行编码和转码 由于每个国 阅读全文
posted @ 2018-09-20 22:25 replaceroot 阅读(173) 评论(0) 推荐(0)
摘要:转载自:https://www.cnblogs.com/lianzhilei/p/5749932.html 一、文件操作模式概述 1、打开文件的模式: r, 只读模式【默认】 w,只写模式【不可读;不存在则创建;存在则删除内容;】 a, 追加模式【不可读;不存在则创建;存在则只追加内容;】 2、"+ 阅读全文
posted @ 2018-09-20 11:41 replaceroot 阅读(89) 评论(0) 推荐(0)
摘要:转载自:https://www.cnblogs.com/lianzhilei/p/5725172.html Python深浅拷贝剖析 Python中,对象的赋值,拷贝(深/浅拷贝)之间是有差异的,如果使用的时候不注意,就可能产生意外的结果。 下面本文就通过简单的例子介绍一下这些概念之间的差别。 一、 阅读全文
posted @ 2018-09-15 10:36 replaceroot 阅读(79) 评论(0) 推荐(0)
摘要:转载自:https://www.cnblogs.com/lianzhilei/p/5724847.html 一、模块初识: Python有大量的模块,从而使得开发Python程序非常简洁。类库有包括三中: Python内部提供的模块 业内开源的模块 程序员自己开发的模块 1、Python内部提供一个 阅读全文
posted @ 2018-09-15 10:19 replaceroot 阅读(108) 评论(0) 推荐(0)
摘要:转载自:https://www.cnblogs.com/lianzhilei/p/5722771.html 基本数据类型 一、整型 如: 18、73、84 整型具备如下功能: class int(object): """ int(x=0) -> int or long int(x, base=10) 阅读全文
posted @ 2018-09-15 09:42 replaceroot 阅读(152) 评论(0) 推荐(0)
摘要:转载自:https://www.cnblogs.com/lianzhilei/p/5703675.html Python简介 Python的创始人为Guido van Rossum。1989年圣诞节期间,在阿姆斯特丹,Guido为了打发圣诞节的无趣,决心开发一个新的脚本解释程序,做为ABC 语言的一 阅读全文
posted @ 2018-09-10 13:12 replaceroot 阅读(194) 评论(0) 推荐(0)