摘要: #!/usr/bin/env python # coding: UTF-8 # -*- coding: utf-8 -*- import requests from bs4 import BeautifulSoup #import pandas newurl='http://www.qiushiba 阅读全文
posted @ 2017-03-14 17:37 静渊居士 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Centos6.7 上安装python2.7.11和pip yum groupinstall "Development tools" -y yum install zlib-devel zlib bzip2-devel openssl-devel ncurses-devel sqlite-devel 阅读全文
posted @ 2017-03-14 16:56 静渊居士 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/bash function rpm_install() { rpm_n=$1 num=$(rpm -qa $rpm_n|wc -l) rpm_name=`ls . |grep $rpm_n-[0-9]` if [ $num -lt 1 ] then echo "the rpm 阅读全文
posted @ 2017-03-14 16:55 静渊居士 阅读(217) 评论(0) 推荐(0) 编辑
摘要: import time import datetime 格式化获取当天日期 time.strftime('%Y%m%d') 格式化获取昨天日期: (datetime.datetime.now() + datetime.timedelta(days=-1)).strftime('%Y%m%d') 格式 阅读全文
posted @ 2017-03-14 16:53 静渊居士 阅读(118) 评论(0) 推荐(0) 编辑