摘要: 通过ppa安装,打开终端,输入以下命令: (PPA是Personal Package Archives首字母简写) 安装: sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo apt-get 阅读全文
posted @ 2017-09-12 13:34 zy-- 阅读(5124) 评论(0) 推荐(0)
摘要: 转自(http://blog.csdn.net/Wangdada111/article/details/73382537?locationNum=2&fps=1) 安装: 测试: $python3.6 --version Python3.6.0 阅读全文
posted @ 2017-09-12 12:59 zy-- 阅读(403) 评论(1) 推荐(0)
摘要: 1 brew install mysql ( 安装 ) 2 bash mysql.server start (启动) 3 mysql -uroot (登陆) mysql> show databases; 4 退出MySQL命令:exit + (回车) ************************ 阅读全文
posted @ 2017-09-11 23:57 zy-- 阅读(6640) 评论(0) 推荐(0)
摘要: 这两天听浮躁,静不下来。下午看了微博上推荐的电影《最后的狮子》, 我从小就喜欢看动物世界,所以看得还算投入,现在闭上眼睛总能出现 那种黄昏的画面,草丛里探出一个脑袋和一双猎杀的眼睛。 我最深的感受来源于那头母狮,狮生所有的悲痛和残忍都发生在她身上, 未能守护家园、受伤,曾经依靠的雄狮也因衰老寡不敌众 阅读全文
posted @ 2017-09-09 00:57 zy-- 阅读(819) 评论(0) 推荐(0)
摘要: 闭包函数必须有内嵌函数 内嵌函数需要引用该嵌套函数上一级变量 闭包函数必须返回内嵌函数 阅读全文
posted @ 2017-09-04 21:42 zy-- 阅读(222) 评论(0) 推荐(0)
摘要: #z装饰器import timedef deco(func): def wrapper(): startT = time.time() func() endT = time.time() msecs = (endT - startT)*1000 print("it's %f ms" % msecs) 阅读全文
posted @ 2017-09-04 17:58 zy-- 阅读(99) 评论(0) 推荐(0)
摘要: import os import sys modulepath = os.getcwd () + '\\module' sys.path.append(modulepath) 阅读全文
posted @ 2017-09-04 15:58 zy-- 阅读(167) 评论(0) 推荐(0)
摘要: *.pyc 命令:python - m py_comple file.py 脚本: import py_compile py_compile.compile('module.py' , 'module.pyc') *.pyo 或 opt 命令:python - O - m py_compile mo 阅读全文
posted @ 2017-09-04 15:39 zy-- 阅读(188) 评论(0) 推荐(0)
摘要: import 模块名字 import 模块名字 as 别名 from 模块名 import 函数/类名/ * 阅读全文
posted @ 2017-09-04 15:33 zy-- 阅读(140) 评论(0) 推荐(0)
摘要: web-based installer 是需要通过联网完成安装 executable installer 是可执行文件(*.exe)方式安装 embeddable zip file 嵌入式版本,可以集成到其它应用中 阅读全文
posted @ 2017-08-31 11:04 zy-- 阅读(19209) 评论(1) 推荐(1)