搜索到与相关的文章
Oracle

Oracle:关联表修改存储过程

CREATEORREPLACEPROCEDUREchange_Zgh(v_oldzghinvarchar2,v_newzghinvarchar2)iscursorcurisselect(selectcolumn_namefromuser_cons_columnsbwhereb.constraint_name=a.constraint_name)cname,a.table_nametnamefromuser_constraintsawhereR_CONSTR

系统 2019-08-12 01:51:51 2376

操作系统

Methods for Using Message Queuing Telemetry

Methodssupportasleepmodeforanembeddeddevice.Embeddeddeviceslikesensorsandactuatorsusedinwirelesssensornetworkshavealimitedpowersupply.Toconserveenergyandthusincreasethelifetimeofthesedevices,thedevicesshouldbeputintoastand-bymode(

系统 2019-08-12 01:32:47 2376

数据库相关

MS-SQL数据库系统表

Select*Frommaster.dbo.sysdatabases查询本数据库信息---------------------------------------------------------------------------------------------------------------------------Sysobjects:SQL-SERVER的每个数据库内都有此系统表,它存放该数据库内创建的所有对象,如约束、默认值、日志、规则、

系统 2019-08-12 01:32:05 2376

Python

python 脚本自动重载

利用flask自带的werkzeug模块实现#监控脚本#首先需要pipinstallflask#pymonitor.pydefrun_with_reloader(main_func,args=(),kwargs=None,extra_files=None,interval=1,reloader_type='auto'):"""Runthegivenfunctioninanindependentpythoninterpreter."""importosimp

系统 2019-09-27 17:57:14 2375

Python

Python3视频转字符动画的实例代码

Python3视频转字符动画,具体代码如下所示:#-*-coding:utf-8-*-importjsonimportosimportsubprocessfrompathlibimportPathfromcv2importcv2importnumpyasnpfromtimeimporttimeimportwebbrowserplay_chars_js='''leti=0;window.setInterval(function(){letimg=frames

系统 2019-09-27 17:57:10 2375

Python

python基础_注释&代码规范

单行注释:一般#后面跟一个空格#说明文字多行注释:(块注释)"""ddss"""关于代码规范Python官方提供有一系列PEP(PythonEnhancementProposals)文档其中第8篇文档专门针对Python的代码格式给出了建议,也就是俗称的PEP8文档地址:https://www.python.org/dev/peps/pep-0008/谷歌有对应的中文文档:http://zh-google-styleguide.readthedocs.io

系统 2019-09-27 17:52:58 2375

Python

python SSTI绕过

原理首先以jinja2模板注入为例:{{request[request.args.param]}}可以用{{request|attr(request.args.param)}}替代绕过"["、"]"过滤绕过的方式也就是同义语句转化,下面给出其他的替换绕过"_"字符:?exp={{request|attr([request.args.usc*2,request.args.class,request.args.usc*2]|join)}}&usc=_&clas

系统 2019-09-27 17:51:45 2375

Python

python的基本数据类型及用法 - 列表、元组、字典等

注,部分内容参考:https://www.runoob.com/python3/python3-data-type.htmlPython中有6个标准的数据类型:Number(数字)String(字符串)List(列表)Tuple(元组)Set(集合)Dictionary(字典)其中,不可变数据(3个):Number(数字)、String(字符串)、Tuple(元组);可变数据(3个):List(列表)、Dictionary(字典)、Set(集合)1.Num

系统 2019-09-27 17:51:20 2375

Python

用Python实现一个简单的能够发送带附件的邮件程序的教程

基本思路就是,使用MIMEMultipart来标示这个邮件是多个部分组成的,然后attach各个部分。如果是附件,则add_header加入附件的声明。在python中,MIME的这些对象的继承关系如下。MIMEBase|--MIMENonMultipart|--MIMEApplication|--MIMEAudio|--MIMEImage|--MIMEMessage|--MIMEText|--MIMEMultipart一般来说,不会用到MIMEBase,

系统 2019-09-27 17:50:33 2375