会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
铁猛
上一页
1
2
3
2015年8月23日
解决mac中wxpython对64位的支持
摘要: 今天mac 10.10.5中安装wxpython,安装完wxpython使用import wx导入模块时出现Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/wxPython-3.0.2.0/...
阅读全文
posted @ 2015-08-23 08:04 铁猛
阅读(360)
评论(0)
推荐(0)
2015年8月19日
python翻译词典实例
摘要: #!/usr/bin/python# -*- coding:utf-8 -*-#通过有道翻译来进行内容翻译import urllib2import urllibimport json#---------翻译方法定义 start---------#def transfer( transferStr ,...
阅读全文
posted @ 2015-08-19 20:51 铁猛
阅读(412)
评论(0)
推荐(0)
2015年8月18日
php断点续传
摘要: 1 class FileDownload{ // class start 2 3 private $_speed = 512; // 下载速度 4 5 /** 下载 6 * @param String $file 要下载的文件路径 7 * @param St...
阅读全文
posted @ 2015-08-18 15:54 铁猛
阅读(265)
评论(0)
推荐(0)
git基本使用
摘要: gitgit的初始化 git init添加一个文档 git add ,添加所有的文件使用git add .提交添加或者修改的文档git commit -m “message”查看状态 git status查看修改内容 git diff filename查看历史纪录 git log版本回退: ...
阅读全文
posted @ 2015-08-18 15:52 铁猛
阅读(480)
评论(0)
推荐(0)
python中os模块的方法总结
摘要: #返回当前的工作目录os.getcwd#print(os.getcwd())#改变一个目录 chdir(path)#列出所有的文件或者目录 listdir(path)#print(os.listdir('/etc'))#创建目录 mkdir(path)#创建多层目录 makedirs(path)#删...
阅读全文
posted @ 2015-08-18 15:36 铁猛
阅读(178)
评论(0)
推荐(0)
2015年8月14日
php几种常用的算法
摘要: 1 $arr[$j]) 18 19 $k = $j; 20 21 if ($k != $i) { 22 23 $tmp = $arr[$i]; 24 25 $arr[...
阅读全文
posted @ 2015-08-14 13:49 铁猛
阅读(316)
评论(0)
推荐(0)
php接收二进制流
摘要: /** 二进制流生成文件 * $_POST 无法解释二进制流,需要用到 $GLOBALS['HTTP_RAW_POST_DATA'] 或 php://input * $GLOBALS['HTTP_RAW_POST_DATA'] 和 php://input 都不能用于 enctype=multipart/form-data * @param String $...
阅读全文
posted @ 2015-08-14 13:40 铁猛
阅读(4610)
评论(0)
推荐(0)
上一页
1
2
3
导航
博客园
首页
新随笔
联系
订阅
管理
公告