Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word ...
分类:
其他好文 时间:
2018-09-07 10:57:51
阅读次数:
162
DECLARE CURSOR temp IS SELECT COLUMN_NAME FROM ALL_TAB_COLUMNS WHERE TABLE_NAME=Upper('TEST'); v_num NUMBER; BEGIN FOR i IN temp LOOP execute immediat ...
分类:
其他好文 时间:
2018-09-06 16:22:20
阅读次数:
165
#!/usr/bin/env python# Author:liujunwith open("test","r",encoding="utf-8") as f: for line in f: print(line.strip())with open("test","r",encoding="utf- ...
分类:
其他好文 时间:
2018-09-05 21:53:12
阅读次数:
109
查看创建dblink所需权限 sqlplus / as sysdba select * from user_sys_privs t where t.privilege like upper('%link%'); 给相应的用户授权 grant drop public database link, cr... ...
分类:
数据库 时间:
2018-09-05 17:58:10
阅读次数:
178
题目描述: Title Case a Sentence 句中单词首字母大写 确保字符串的每个单词首字母都大写,其余部分小写。 题目来源:freecodecamp 注意: 字符串可以通过运算操作改变,但不能通过下标值去修改某个特定字符,唯一的方法是重新赋值。 1 function titleCase( ...
分类:
Web程序 时间:
2018-09-05 17:40:22
阅读次数:
153
# 取随机小数# print(random.random()) #取得就是0到1之间 没啥用# print(random.uniform(3,4)) #设置两个数 n f 之间的小数# 取随机整数# print(random.randint(1, 4)) #随机取一个整数 下面有对比# print( ...
分类:
其他好文 时间:
2018-09-05 00:56:46
阅读次数:
165
l1 = plt.plot(x,y1,lable='linear line') 表示l1是一条线,x,y参数确定,lable表示这个线在figure里面的名称 plt.legend(loc='upper right') #plt的图例放置的位置在loc参数中 plt.legend(handles=[ ...
分类:
其他好文 时间:
2018-09-03 20:30:12
阅读次数:
251
c++二分查找的用法 主要是 std::binary_serach, std::upper_bound以及std::lower_bound 的用法,示例如下: 结果: ...
分类:
其他好文 时间:
2018-09-03 12:11:09
阅读次数:
114
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the fi ...
分类:
其他好文 时间:
2018-09-02 18:38:51
阅读次数:
202
600A - Extract Numbers 20171106 字符串处理题,稍微注意点细节就能水过 #include<stdlib.h> #include<stdio.h> #include<math.h> #include<vector> #include<cstring> #include<i ...
分类:
其他好文 时间:
2018-09-02 17:13:14
阅读次数:
181