python
Samaritan_H
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
linux python2升级到python3(源码编译安装)
系统自带的py2升级成py3教程 需要root权限Step1#下载wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgzStep2#解压 到项目目录下 ./configure #如果报错configure: error: no acceptable C compiler found in $PATH#需要安装/升级原创 2017-12-20 10:26:20 · 733 阅读 · 0 评论 -
python很好用的时间处理包 Arrow
py标准包datetime 中的时间处理,方法较繁多,不是很好记忆,所以在使用的便利程度上难免会打个折,然后发现一款很好用的python的时间处理包Arrow git上的项目地址简单的介绍,详细的使用教程参照git上的doc下载导包pip install arrow获取当前时间,格式化时间#获取当前时间 utc时间 local时间 #t是一个arrow的时间对象,之后的日期格式化,时间的原创 2017-12-25 16:53:42 · 3344 阅读 · 0 评论 -
python http请求工具Requests
python http请求利器Requests 只涉及一些常用的方法,一些高级特性查看尾部链接安装pip install requests发送请求#r 是response对象 r = requests.get('https://github.com/timeline.json')#get r = requests.post("http://httpbin.org/post") #post原创 2017-12-25 18:35:18 · 1837 阅读 · 0 评论 -
python 连接mysql ---PyMysql
python连接mysql的工具 python 连接mysql的工具有很多,mysqldb,oursql等,从安装的便利和使用上选择了pymysql安装pip install PyMysql使用#!/usr/bin/python3# coding=utf-8# coding=utf-8# coding=utf-8# coding=utf-8# coding=utf-8# coding=utf原创 2017-12-26 11:44:15 · 632 阅读 · 0 评论 -
Python免秘钥ssh远程登录执行命令and本地执行shell命令
python远程执行 python paramiko 模块的应用原创 2018-01-04 11:14:01 · 3599 阅读 · 0 评论
分享