- 博客(6)
- 收藏
- 关注
原创 python +pygame 实现音乐播放功能
bn_play = tk.Button(window, text='播放', font=('Arial', 12), width=10, height=1, command=play)bn_stop = tk.Button(window, text='停止', font=('Arial', 12), width=10, height=1, command=stop)filetypes=[('音乐', '*.mp3 *.ogg '), ('所有文件', '*')],
2024-01-22 02:22:29
1282
原创 python 小工具--自动识别图片内的文字
bn_open = tk.Button(window, text='选择文件', font=('Arial', 12), width=10, height=1, command=tess)filetypes=[('图片', '*.jpg *.bmp *.png'), ('所有文件', '*')],str_text = pytesseract.image_to_string(Image,lang='chi_sim') #使用简体中文解析图片。print('选择的导入文件是: ', file_path)
2024-01-17 21:59:08
507
原创 用python编程实现识别图片上的文字
text = pytesseract.image_to_string(Image,lang='chi_sim') #使用简体中文解析图片。Image = Image.open('d:\\123.png') # 选着一张图片并打开。一、安装PIL库,PIL这个库的名字官方改为了Pillow。二、安装pytesseract库。
2024-01-16 13:06:14
570
1
原创 用python学习爬虫---
语言:python3.8编程环境:Windows 7 (64位)平台:PyCharm直接上效果:import jsonimport requestsimport sysfrom tkinter import *list_notice = []def getWeather(city_code): url = 'http://t.weather.sojson.com/api/weather/city/' + str(city_code) response = re
2024-01-15 16:52:24
1472
原创 菜鸟之旅:ESP 8266开发板 + 1.8寸OLED液晶屏(驱动器IC:ST 7735)
测试平台:Arduino IDE 1.8.9硬件:esp8266 (ESP-12E) , 1.8寸 OLED (驱动器IC ST7735)
2024-01-15 15:34:53
2332
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人