![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python练手源码
猴戏浅滩
这个作者很懒,什么都没留下…
展开
-
Python3 判定json对象是否包含指定属性key
通过 in 判定key是否存在 if 'url' in json: return true else: return false原创 2020-09-24 10:16:45 · 5012 阅读 · 0 评论 -
python2.7小程序练手源码 读取txt文件生成excel
#coding:utf8 import xlwt #导入xlwt def write_excel(): filePath = u"E:\\data.txt" targetPath="E:\\data.xls" f0 = xlwt.Workbook() sheet1 = f0.add_sheet('Sheet1',cell_overwrite_ok=Tr...原创 2019-01-09 17:26:50 · 539 阅读 · 0 评论 -
python2.7小程序练手源码 多线程读取文件夹下的多个文件进行数据处理生成Excel
#!/usr/bin/python # -*- coding: UTF-8 -*- import threading import time import os import uuid import xlwt #导入xlwt # 首先获得Iterator对象: #it = iter([x for x in range(1,20)]) root_path = "e:/demo" targ...原创 2019-03-28 16:22:58 · 550 阅读 · 0 评论 -
Python3.6 车牌识别代码源码
执行环境:python 3.6、PyQt5 (pip install PyQt5)、百度SDK AipOcr (pip install baidu-aip) #!/usr/bin/python3 # -*- coding: UTF-8 -*- import sys from aip import AipOcr from PyQt5.QtWidgets import (QDialog, ...原创 2019-09-30 15:07:09 · 3708 阅读 · 12 评论