首先,我用的工程文件是https://github.com/dBeker/Faster-RCNN-TensorFlow-Python3.5里的windows下的代码。这个代码在windows我已经调通过。过程中也是遇到windows下安装pycocotools的难题,需要去下载一个windows下的安装文件去安装,我参考了CSDN博主行胜于言的博客:windows安装pycocotools方法(windows10编译Pycocotools出错解决方案最新)
系统 2019-09-27 17:53:25 2397
首先需要安装itchat库,可以pipinstallitchat安装,也可以在pycharm里安装#-*-coding:utf-8-*-__author__="MuT6Sch01aR"importitchatdefget_friends():friends=itchat.get_friends(update=True)#获取微信好友列表,如果设置update=True将从服务器刷新列表foriinfriends:print(i)defmain():itch
系统 2019-09-27 17:51:50 2397
转自:opencv+python3.6图像旋转、并保持图像像素大小不变、不被裁剪(旋转90/180/270度)importcv2importnumpyasnpimportos,shutildefrotate_bound(image,angle):#grabthedimensionsoftheimageandthendeterminethe#center(h,w)=image.shape[:2](cX,cY)=(w//2,h//2)#grabtherotat
系统 2019-09-27 17:49:29 2397
classBook:def__init__(self,name,author,comment,state=0):self.name=nameself.author=authorself.comment=commentself.state=statedef__str__(self):status='未借出'ifself.state==1:status='已借出'return'名称:《%s》作者:%s推荐语:%s\n状态:%s'%(self.name,self
系统 2019-09-27 17:48:20 2397
转发:https://blog.csdn.net/qq_37482544/article/details/63720726
系统 2019-09-27 17:48:11 2397
Win10系统下Python3.x环境配置https://blog.csdn.net/qq_41952474/article/details/82630551
系统 2019-09-27 17:47:47 2397
字典排序在程序中使用字典进行数据信息统计时,由于字典是无序的所以打印字典时内容也是无序的。因此,为了使统计得到的结果更方便查看需要进行排序。Python中字典的排序分为按“键”排序和按“值”排序。按“值”排序按“值”排序就是根据字典的值进行排序,可以使用内置的sorted()函数。sorted(iterable[,cmp[,key[,reverse]]])iterable:是可迭代类型类型;cmp:用于比较的函数,比较什么由key决定,有默认值,迭代集合中
系统 2019-09-27 17:47:11 2397
Python作为本学期新学的一门语言,和以前学的C,Java有着很大的不同,不仅环境安装简单,它的语言用法更加的简单,也更加的随意。Pycharm的使用因为有引申输入的存在,也更加方便快捷,jupyternotebook的使用有着保存历史的程序功能,也很方便,不仅可以当课件也可以看以前写过的代码,方便我们的学习和复习。通过python的学习,也养成了缩进的习惯,这样可以不仅能让python的语法正确,也可以使程序看起来更加的美观整洁。边讲边练的形式和以前上
系统 2019-09-27 17:47:01 2397
如下所示:#-*-coding:utf-8-*-importnumpyasnpfromPyQt5.QtCoreimportQTimer,QObjectfromPyQt5.QtWidgetsimportQWidget,QApplicationimportsysimporttimeclassmy_timer(QWidget):def__init__(self):super(my_timer,self).__init__()self.my_t=QTimer(se
系统 2019-09-27 17:46:31 2397
从下面字典中查找出值为数字的字符串,并显示出对应字典的键名和该值dct={'Name':['Alice','1456'],'Age':['aa','5aa','345']}#取出字典的值forvalue1indct.values():#遍历值列表forvalue2invalue1:#判断是否为数字的字符串ifvalue2.isdigit():value=value1key=[kfor(k,v)indct.items()ifv==value]print("键
系统 2019-09-27 17:46:31 2397