会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
屌丝IT男
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
8
9
10
11
···
14
下一页
2016年7月23日
关于远程连接MySQL数据库的问题解决
摘要: 安装MySQL sudo apt-get install mysql-server 这个应该很简单了,而且我觉得大家在安装方面也没什么太大问题,所以也就不多说了,下面我们来讲讲配置。 配置MySQL 注意,在Ubuntu下MySQL缺省是只允许本地访问的,如果你要其他机器也能够访问的话,那么需要改变
阅读全文
posted @ 2016-07-23 10:53 屌丝IT男
阅读(278)
评论(0)
推荐(0)
2016年7月17日
python使用open经常报错:TypeError: an integer is required的解决方案
摘要: 错误是由于从os模块引入了所有的函数导致的,os模块下有一个open函数,接受整型的文件描述符和打开模式,from os import *引入os模块的open函数,覆盖了python内建的open函数,导致错误。删除from os import *这行,然后再根据需要,指定引入os模块下的函数建议
阅读全文
posted @ 2016-07-17 15:12 屌丝IT男
阅读(32065)
评论(1)
推荐(2)
python仿微软记事本
摘要: 效果:
阅读全文
posted @ 2016-07-17 15:10 屌丝IT男
阅读(1010)
评论(0)
推荐(0)
抓取oschina上面的代码分享python块区下的 标题和对应URL
摘要: 貌似生成的url有问题,待优化。。。
阅读全文
posted @ 2016-07-17 13:47 屌丝IT男
阅读(239)
评论(0)
推荐(0)
单词翻译
摘要: 很多时候要用命令行shell才能执行,可能是环境问题 效果:
阅读全文
posted @ 2016-07-17 13:04 屌丝IT男
阅读(150)
评论(0)
推荐(0)
python多线程下载
摘要: # -*- coding=utf-8 -*- import sys import os import os.path import time import urllib.request, urllib.parse, urllib.error from threading import Thread local_proxies = {} class ThreadDownComplete...
阅读全文
posted @ 2016-07-17 12:27 屌丝IT男
阅读(188)
评论(0)
推荐(0)
2016年7月16日
爬取妹子图片
摘要: # -*- coding=utf-8 -*- import re import string import urllib, urllib2 import os, sys import multiprocessing def getImageUrls(page): '''获取每个模块下的图片链接''' image_items = {} url_index = '...
阅读全文
posted @ 2016-07-16 18:39 屌丝IT男
阅读(397)
评论(0)
推荐(0)
2016年7月13日
phpmailer发送邮件 SMTP Error: Could not authenticate 错误
摘要: 这个错误说明虚拟主机不支持PHPMailer默认调用的fsockopen函数,找到class.smtp.php文件,搜索fsockopen,就找到了这样一段代码: 首先,在php.ini中去掉下面的两个分号 ;extension=php_sockets.dll ;extension=php_open
阅读全文
posted @ 2016-07-13 21:51 屌丝IT男
阅读(635)
评论(0)
推荐(0)
使用phpmaill发送邮件的例子
摘要: 首先,要下载php_mail软件包 核心代码: index.php mail.php 效果:
阅读全文
posted @ 2016-07-13 21:43 屌丝IT男
阅读(9148)
评论(1)
推荐(0)
2016年7月11日
高处胜寒 php中奖概率算法,可用于刮刮卡,大转盘等抽奖算法
摘要: $proCur) { $randNum = mt_rand(1, $proSum); if ($randNum array('id'=>1,'prize'=>'平板电脑','v'=>1), '1' => array('id'=>2,'prize'=>'数码相机','v'=>5), '2' => array('id'=>3,'prize'...
阅读全文
posted @ 2016-07-11 21:32 屌丝IT男
阅读(213)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
14
下一页
公告