注:s表示定义的一个字符串变量,如:s = 'hello string' 1. s.index() 查找元素,若查到则返回该元素索引,含多个该元素则返回第一个,查不到则报错 s = 'hello string' # 有且唯一的情况 res = s.index('e') print(res) 打印结果 ...
分类:
其他好文 时间:
2019-12-24 20:50:17
阅读次数:
121
通过PHP抓取页面在显示出来 <?php$url = 'http://www.baidu.com'; $content = file_get_contents($url); $content = str_replace('/static/',$url .'/static/',$content); $ ...
分类:
其他好文 时间:
2019-12-24 20:38:57
阅读次数:
93
创建包 包头: CREATE OR REPLACE PACKAGE test_pkg IS PROCEDURE update_sal(e_name VARCHAR2,newsal NUMBER); -- 定义一个函数 FUNCTION ann_income(e_name VARCHAR2) RETU ...
分类:
数据库 时间:
2019-12-24 15:42:36
阅读次数:
125
函数如下: 1 create or replace FUNCTION fn_rme_split(p_str IN VARCHAR2, 2 p_delimiter IN VARCHAR2) 3 RETURN rme_split 4 PIPELINED IS 5 j INT := 0; 6 i INT ...
分类:
数据库 时间:
2019-12-24 15:33:25
阅读次数:
120
背景: 最近对接接口的时候需要将请求参数转为16进制,因此研究了下这个bin2hex。在js中转16进制 使用的是: 在遇到中文的时候编码就会不一致,因此需要特殊对待中文 以上是把%过滤掉了,如不不要过滤就把replace方法去掉即可 ...
分类:
Web程序 时间:
2019-12-24 13:45:49
阅读次数:
130
University of Leeds School of ComputingProcedural Programming XJCO1711Semester 1, 2019-2020Coursework 3 80 Marks(40% of the total module marks) Submis ...
分类:
其他好文 时间:
2019-12-22 20:06:31
阅读次数:
63
//jq-util.js$.extend({ Util:{ /* 浏览器 */ browser:{ IE: !!document.all, IE6: !!document.all && !window.XMLHttpRequest, IE7: !!document.all &&... ...
分类:
Web程序 时间:
2019-12-22 16:50:54
阅读次数:
105
SQL中的替换函数replace()使用 https://www.cnblogs.com/martinzhang/p/3301224.html 语法REPLACE ( string_expression , string_pattern , string_replacement )参数string_ ...
分类:
数据库 时间:
2019-12-22 11:07:59
阅读次数:
72
视图是从一个或多个表中导出来的表,它是一种虚拟存在的表,并且表的结构和数据都依赖于基本表。 创建视图使用CREATE VIEW语句,语法格式如下: CREATE [OR REPLACE] [ALGORITHM = {UNDEFINED | MERGE | TEMPTABLE}] VIEW view_ ...
分类:
其他好文 时间:
2019-12-21 13:25:20
阅读次数:
314
效果: 转自博客:https://www.cnblogs.com/magicalSam/p/7473780.html ...
分类:
其他好文 时间:
2019-12-20 20:35:12
阅读次数:
91