- 博客(2)
- 收藏
- 关注
原创 python +selenium+chorem的搭建
这里写自定义目录标题python +selenium+chorem的搭建运行代码问题原因解决python +selenium+chorem的搭建运行代码from selenium import webdriver#导入库import time browser = webdriver.Chrome()#声明浏览器 url = 'www.baidu.com' browser.get(url)#打开浏览器预设网址 time.sleep(2) print(browser.page_source)#
2021-03-11 10:58:21
276
原创 Python把图片转换为像素--PIL模块
Python把图片转换为像素--PIL模块操作案例操作代码知识点操作案例操作代码from PIL import Imagedef getImage(): # 取得图像 file = open(r"/Users/amika/Documents/test11111/IMG_0181.jpeg", 'rb') img = Image.open(file) return imgdef getText(img): img = img.convert('L')
2021-02-18 13:58:11
1179
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人