oracle PROCEDURE 关键字: oracle 存储过程 1.基本结构 CREATE OR REPLACE PROCEDURE 存储过程名字 ( 参数1 IN NUMBER, 参数2 IN NUMBER ) IS 变量1 INTEGER :=0; 变量2 DATE; BEGIN END 存 ...
分类:
其他好文 时间:
2017-10-28 15:36:24
阅读次数:
207
1.file读文件读取文件的步骤:1.打开文件2.文件操作(读或者写、替换replace)3.关闭文件例子:importcodecsfile1=codecs.open("1.txt")print(file1.read())file1.close()说明:codecs导入模块,解决文件乱码文件的类2.file写文件写文件重要参数:读取:r写:w二进制:b追加:a..
分类:
编程语言 时间:
2017-10-28 11:23:09
阅读次数:
167
1、读文件 (1).open文件 (2).写入或读取文件 (3).关闭close文件 import codecs f = codecs.open('1.txt') text = f.read() result = text.replace('today', 'tomorrow') print(res ...
分类:
其他好文 时间:
2017-10-28 11:16:48
阅读次数:
226
arrow是个时间日期库,简洁易用。支持python3.6 https://arrow.readthedocs.io/en/latest/ arrow官网api https://github.com/crsmithdev/arrow arrow的GitHub托管的地址 http://www.ipla ...
分类:
编程语言 时间:
2017-10-28 01:04:48
阅读次数:
489
读取文件三步骤: 导入模块 codecs # codecs模块主要用来结局文件乱码的问题。 import codecs 1、打开文件 2、文件操作(读或者写) 3、关闭文件 f = codecs.open('1.txt') text = f.read() result = text.replace( ...
分类:
编程语言 时间:
2017-10-27 23:47:28
阅读次数:
256
equals 是比较的两个字符串是否一样 length() 返回字符串的长度 charAt (int index) 返回index所指定的字符 getChars(int srcBegin,int srcEnd,char[] dst,int dstBegin)将字符从此字符串复制到目标字符数组。 要复 ...
分类:
其他好文 时间:
2017-10-27 17:49:40
阅读次数:
162
Length(): 获得字符串的长度,返回int型 charAt(): 获得字符串相应位置的单个字符,参数为int型,返回值为char型 getChars(): 返回用户输入的第一个字符 replace(): 返回一个字符串,该字符串中指定的子字符串已被替换成另一子字符串,并且替换发生的次数也是指定 ...
分类:
其他好文 时间:
2017-10-27 17:45:09
阅读次数:
98
$data['form-data '] = array('filename'=>'test.png'); 经过测试不可用; 还有这种@上传文件curl只支持php5,6以下的版本 $data['media'] = "@/www/file/test.png;type=image;filename=te ...
分类:
微信 时间:
2017-10-27 13:33:42
阅读次数:
406
主要是在后台传前端之前先把变量值替换单引号双引号成转译付。 $bianlian是要替换的变量 两种方法 1.php后台输出值先转译 //双引号替换成转译符 $bianlian=preg_replace('/\"/', '"',$bianlian); //单引号替换成转译符 $bianlia ...
分类:
其他好文 时间:
2017-10-27 11:35:57
阅读次数:
184
1.动手动脑 public class StringEquals { public static void main(String[] args) { String s1=new String("Hello");String s2=new String("Hello");System.out.pri ...
分类:
其他好文 时间:
2017-10-27 01:42:32
阅读次数:
172