python
文章平均质量分 52
pengShuai007
向前走
展开
-
python获取RDS信息并遍历结果
阿里官方API:https://help.aliyun.com/document_detail/26226.html?spm=5176.product26090.6.819.CyyA4l脚本如下:#!/usr/bin/env python# coding=utf-8from aliyunsdkcore import clientfrom aliyunsdkrds.request.v2原创 2017-11-10 10:57:39 · 3119 阅读 · 1 评论 -
python调用阿里接口获取ECS资产信息
阿里官方API链接:https://help.aliyun.com/document_detail/25485.html?spm=5176.doc25484.6.814.K0udwc原创 2017-11-10 10:26:03 · 2716 阅读 · 0 评论 -
python调用阿里云接口获取SLB资产信息
阿里官方API:https://help.aliyun.com/document_detail/27566.html?spm=5176.product27537.6.617.8WaYxG#!/usr/bin/env python# coding=utf-8from aliyunsdkcore import clientfrom aliyunsdkslb.request.v20140515原创 2017-11-10 11:05:03 · 3432 阅读 · 0 评论 -
pyhton使用open函数读取包含中文路径文件大坑记
正确脚本:# coding=utf8file_path = 'E:/消费明细/2017-01.csv'print('123')try: data = open(unicode(file_path, 'utf-8'), 'r') print ('正确打开')except Exception, e: print str(e)报错脚本:# co原创 2018-01-05 16:11:35 · 832 阅读 · 0 评论 -
python实现阿里签名信息获取
近日,由于需要同步阿里资产费用信息,但是阿里目前只提供了相关接口,并无相关SDK给出,所以需要自行拼接相关参数,其中签名信息获取较为复杂,特此记录一下。具体签名机制相关文档如下:https://help.aliyun.com/document_detail/87971.html?spm=a2c4g.11174283.6.550.2b515467Fwv4EK# coding=utf8...原创 2018-09-17 14:00:24 · 938 阅读 · 0 评论