请参考:
实用模块参考
文件操作:
原生模块:
open()
数组:numpy
SciPy–使用NumPy来做高等数学、信号处理、优化、统计和许多其它科学任务的语言扩展
机器学习:tensorflow,cafe
网页操作:
1.webbrowser
api: webbrowser.open(url)->用默认浏览器打开url
2.强大的网页 测试/操作 模块,可操纵浏览器:selenium
3.无头浏览器:Chrome
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument('--headless')
driver = webdriver.Chrome(chrome_options=chrome_options)
时间:time
windows系统:
1.os【cmd等操作】
2.tkinter【python UI界面】
多线程:
1.from threading import Thread
网络请求(网页等):urllib3
网页内容抓取数据:
1.beautifulsoup4
from bs4 import BeautifulSoup
2.web 页面测试:Selenium
数据库:
MySQL:PyMySQL
进度条:tqdm
音乐/视频/游戏:pygame
图像:
1.opencv
2.Pillow(内含 屏幕截图)
from PIL import ImageGrab
a = ImageGrab.grab(bbox=None)
a.save('555.jpg')
a.show()