摘要: 用github加hexo了 博客园编辑太浪费时间了 阅读全文
posted @ 2016-12-11 02:20 YEAR~ 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 玩蛇(Python)笔记之基础Part5 标签:Python 一.Python模块 1. python模块 其实就是其他语言的类库 先导入后使用 2. 分为内置模块 自定义模块 第三方模块 用于代码分类 3. 模块名字很重要 导入模块的依据 sys.path 4. 导入的方式 import 和 fr 阅读全文
posted @ 2016-11-27 20:08 YEAR~ 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 玩蛇(Python)笔记之基础Part4 标签 : Python 一.Python装饰器 1. 对象封闭原则 利用装饰器来实现添加功能而不修改本身 2. @+函数名 自动执行outer函数并且将下面的函数名f1当做参数传递给outer 将outer函数的返回值重新赋值给f1 3. 注意内置函数的参数 阅读全文
posted @ 2016-11-26 22:36 YEAR~ 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 玩蛇(Python)笔记之基础Part1 一.集合 1.set 无序,不重复序列 {}创建,直接写元素 2.set功能 __init__()构造方法,,使用强制转换就会调用此方法 1 set1 = {'year', 'jiujiujiu'} 2 print(type(set1)) 3 # 创建集合 阅读全文
posted @ 2016-11-22 21:13 YEAR~ 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 玩蛇(Python)笔记之基础Part2 一.列表 1.列表 别的语言叫数组 python牛逼非要取个不一样的名字 1 age = 23 2 name = ["biubiubiu", "jiujiujiu", 22, age] 3 # namecopy = name 4 # namecopy.pop 阅读全文
posted @ 2016-11-20 12:48 YEAR~ 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 玩蛇笔记之基础Part1 一.国际惯例之Hellow World!! 1 # Hello World 2 print("Hello World!! ") 3 print("Hello again!! \n") 4 print("Hello again!!") 二.定义变量 1.Python声明或定义 阅读全文
posted @ 2016-11-13 20:04 YEAR~ 阅读(161) 评论(0) 推荐(0) 编辑