资源简介
请先看下环境配置:https://blog.csdn.net/heivy/article/details/81634187
代码片段和文件信息
import os
import sys
from qcloud_image import Client
from qcloud_image import CIUrl CIFile CIBuffer CIUrls CIFiles CIBuffers
import json
import urllib3
import random
appid = “10144767“
secret_id = “AKID42pSuE6L83oOmz8rZMxRmwugHhT58qwr“
secret_key = “sa6zrb6QfkgT5Xp04xkMn383pAPiqmXs“
bucket = ‘test‘
client = Client(appidsecret_idsecret_keybucket)
client.use_http()
client.set_timeout(30)
imgpath =“D:/vs project/img_352.jpg“
if
- 上一篇:python实现自动扫雷
- 下一篇:python 百度贴吧 爬虫
评论
共有 条评论