![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PYTHON
文章平均质量分 76
iasmn68628
这个作者很懒,什么都没留下…
展开
-
Python基础教程之第2章 列表和元组
D:\>pythonPython 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.#2.1序列概览>>> edward=['Edward Gumby'原创 2014-08-25 08:21:10 · 1467 阅读 · 0 评论 -
Python基础教程之第9章 魔法方法, 属性和迭代器
#魔法方法, 属性 和 迭代器D:\>pythonPython 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.#9.1准备工作>>> __meta原创 2014-08-25 08:30:18 · 653 阅读 · 0 评论 -
Python基础教程之第4章 字典: 当索引不好用时
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32Type "copyright", "credits" or "license()" for more information.#4.1字典的使用>>> names=['Alice','Beth','Cecil','Dee-Dee原创 2014-08-25 08:25:01 · 903 阅读 · 0 评论 -
Python基础教程之第3章 使用字符串
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32Type "copyright", "credits" or "license()" for more information.#3.1基本字符串操作>>> website = 'http://www.python.org'>>原创 2014-08-25 08:21:29 · 1412 阅读 · 0 评论 -
Python基础教程之第8章 异常
#Chapter 8 异常Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.#8.1 什么是异常>>> 1/0Traceback (mo原创 2014-08-25 08:28:55 · 504 阅读 · 0 评论 -
Python基础教程之第1章 基础知识
#1.1 安装Python#1.1.1 Windows#1.1.2 Linux和UNIX#1.1.3 Macintosh#1.1.4 其他发布版#1.1.5 时常关注,保持更新#1.2 交互式解释器D:\>pythonPython 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32原创 2014-08-25 08:15:48 · 1568 阅读 · 0 评论 -
Python基础教程之第7章 更加抽象
D:\>pythonPython 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.# Chapter 07 更加抽象#7.1 对象的魔力# 前几章介原创 2014-08-25 08:29:19 · 1134 阅读 · 0 评论 -
Python基础教程之第6章 抽象
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32Type "copyright", "credits" or "license()" for more information.#6.1 懒惰即美德>>> fibs = [0,1]>>> for i in range(8):原创 2014-08-25 08:28:01 · 1128 阅读 · 0 评论 -
Python基础教程之第5章 条件, 循环和其他语句
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32#Chapter 5 条件, 循环和其他语句#5.1 print和import的更多信息#对于很多应用程序来说, 使用logging模块记日志比print语句更合适#5.1.1 使用逗号输出#可以看到, 每隔参数之间都自动插入原创 2014-08-25 08:24:52 · 1404 阅读 · 0 评论