经年塞上伴吟翁,耳畔长听奕奕风。独步羡君诗万首,低头愧我一庸身。三生有幸认师表,百年无缘送诗魂。痛哭悲歌终不补,心香聊祭一枝春。左四为秦中吟从左至右:白永刚、杨森翔、秦中吟、丁国成、张树彬。悼秦中吟去世
系统 2019-08-12 01:32:31 2425
declare@prdtidchar(7)declare@date_strchar(4)declare@date_intintdeclare@sqlnvarchar(3000)declare@bigcintdeclare@copchar(2)set@bigc=1set@cop='02'ifobject_id('tempdb.dbo.#class')isnullbegincreatetable#class(ClassIDnvarchar(15),bigcin
系统 2019-08-12 01:31:59 2425
目录一、概述二、Python语言概述2.1Python语言的诞生2.2MontyPython组合三、Python语言系统开发环境配置四、Python程序编写与运行4.1Python的两种编程方式4.2实例1:圆面积的计算4.2.1交互式4.2.2文件式4.3实例2:同切圆绘制4.3.1交互式4.3.2文件式4.4实例3:五角星绘制4.4.1交互式4.4.2文件式五、小结一、概述Python语言概述Python语言系统开发环境配置Python程序编写与运行二
系统 2019-09-27 17:55:34 2424
要求1.安装百度pythonAPI2.到百度智能云创建应用3.调用API,代码1.安装百度pythonAPI使用pip安装pip3installbaidu-api2.到百度智能云创建应用-如下图创建应用得到APP_IDAPI_KEYSECRET_KEY3.调用API,代码fromaipimportAipFaceimportbase64importurllibimportcv2"""你的APPIDAKSK"""APP_ID='你的APP_ID'API_KEY
系统 2019-09-27 17:55:13 2424
ref@https://blog.csdn.net/handsomekang/article/details/9615239cls参数和self参数cls当前个类self当前这个类的实例@staticmethod@classmethod一般来说,要使用某个类的方法,需要先实例化一个对象再调用方法。而使用@staticmethod或@classmethod,就可以不需要实例化,直接类名.方法名()来调用。这有利于组织代码,把某些应该属于某个类的函数给放到那个
系统 2019-09-27 17:53:51 2424
运行时请在其目录下添加user.txtpasswd.txt两文件。否则会报错。程序没有加异常处理。代码比较挫.....复制代码代码如下:#coding:utf-8-importbase64importurllib2importQueueimportthreading,re,sysqueue=Queue.Queue()classRout_thread(threading.Thread):def__init__(self,queue,passwd):threa
系统 2019-09-27 17:53:17 2424
需要安装matplotlib库,可以用如下命令安装:pipinstallmatplotlibtxt文本数据如下所示(示例中的每一行内部用空格分开):1000.66922152000.576827943000.450376154000.422147135000.450730986000.47283737000.480838668000.37514929000.424984410000.3642721511000.3620946412000.404907581
系统 2019-09-27 17:52:34 2424
效果基于Python3。在自己写小工具的时候因为这个功能纠结了一会儿,这里写个小例子,供有需要的参考。小例子,就是点击按钮打开路径选择窗口,选择后把值传给Entry输出。效果预览这是选择前:选择:选择后:代码很基础的写法。fromtkinterimport*fromtkinter.filedialogimportaskdirectorydefselectPath():path_=askdirectory()path.set(path_)root=Tk()p
系统 2019-09-27 17:51:31 2424
首先先获取access_token,并保存与全局之中deftoken(requset):url='https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s'%(Config.AppID,Config.AppSecret)result=urllib2.urlopen(url).read()Config.access_token=json.lo
系统 2019-09-27 17:51:23 2424
我们在做webUI自动化时,经常会碰到下拉框,如下图:所上图,下拉框的源代码如下:苹果香蕉菠萝梨子假如我们要选择‘菠萝',我们将怎么实现呢?首先我们要定位水果框,再定位水果下面的元素,如下图所示:具体代码如下:fromseleniumimportwebdriverfromselenium.webdriver.support.selectimportSelect#首先必须要导入select包才能定位fromtimeimportsleepdr=webdrive
系统 2019-09-27 17:49:20 2424