会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
睡到自然醒
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
下一页
2018年8月9日
python 文件编译成exe可执行文件。
摘要: pyinstaller打包方法: pyinstaller安装参考地址:http://www.pyinstaller.org/ pywin32的下载地址:https://sourceforge.net/projects/pywin32/files/pywin32/(下载对应的版本) 1.安装pyins
阅读全文
posted @ 2018-08-09 19:24 睡到自然醒ccc
阅读(1511)
评论(0)
推荐(0)
2018年8月7日
python 数据库备份脚本
摘要: #!/usr/bin/python # -*- coding: UTF-8 -*- """数据库备份""" import os import time import sched import re import smtplib from email.mime.text import MIMEText from email.header import Header from email....
阅读全文
posted @ 2018-08-07 20:11 睡到自然醒ccc
阅读(229)
评论(0)
推荐(0)
python简单循环生成器
摘要: import time #循环生成器 def traversal_list(alist, i): while True: length = len(alist) i = i%(length) yield alist[i] i += 1 def traversal_list2(alist): i = 0 ...
阅读全文
posted @ 2018-08-07 20:07 睡到自然醒ccc
阅读(455)
评论(0)
推荐(0)
python邮件服务-yagmail
摘要: 下载安装 yagmail import yagmail #链接邮箱服务器 #此处的password是授权码 yag= yagmail.SMTP( user="843092012@qq.com", password="xumeagqowzcgbfji", host='smtp.qq.com') # 邮
阅读全文
posted @ 2018-08-07 20:05 睡到自然醒ccc
阅读(290)
评论(0)
推荐(0)
python图片大小处理;
摘要: 循环一个目录将下面的所有png或者jpg文件全部缩小一定比例; from PIL import Image import os,re work_dir = 'C:\\Users\\Administrator\\Desktop\\imge' for parent, dirnames, filename
阅读全文
posted @ 2018-08-07 20:02 睡到自然醒ccc
阅读(993)
评论(0)
推荐(0)
2018年7月27日
git 版本回退
摘要: git reset 首先,我们要弄清以下三条命令的区别: git reset –hard git reset –soft git reset 工作区,暂存区,本地仓库,远程仓库的概念我在这里就不介绍了。这是git最为基础的概念,可自行百度。下面说说这三条 git reset 指令的区别: git r
阅读全文
posted @ 2018-07-27 10:53 睡到自然醒ccc
阅读(366)
评论(0)
推荐(0)
2018年7月20日
jmeter使用复习
摘要: 多终端进程: 配置客户端远程的ip地址和port 在客户端jmeter安装目录的bin目录下,修改配置文件 jmeter.properties 默认的remote_hosts 的值:(将肉鸡的地址加入到hosts后面) 然后去到jmeterGUI界面内,选择远程启动, 注:远程的jmeter版本与脚
阅读全文
posted @ 2018-07-20 15:55 睡到自然醒ccc
阅读(180)
评论(0)
推荐(0)
2018年7月5日
smartgit 使用
摘要: 合并分支
阅读全文
posted @ 2018-07-05 23:31 睡到自然醒ccc
阅读(204)
评论(0)
推荐(0)
gitolite 丢失管理密钥/访问权限 解决办法
摘要: 登录到服务器。 使用完整路径克隆管理员仓库: git clone $HOME/repositories/gitolite-admin.git temp cd gitolite-admin/conf vi gitolite.conf 将gitolite-admin仓库的管理权限修改为你自己的账户 保存
阅读全文
posted @ 2018-07-05 20:04 睡到自然醒ccc
阅读(734)
评论(0)
推荐(0)
2018年7月3日
python shutil模块
摘要: shutil:高级的 文件、文件夹、压缩包 处理模块 shutil.copyfileobj(fsrc, fdst[, length])(copyfileobj方法只会拷贝文件内容)将文件内容拷贝到另一个文件中 shutil.copyfile(src, dst) (copyfile只拷贝文件内容)拷贝
阅读全文
posted @ 2018-07-03 13:55 睡到自然醒ccc
阅读(303)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
下一页
公告