1、 >>> a = "gooD" ##测试字符串 >>> a.lower() ##全部变为小写 'good' >>> a.upper() ## 全部变为大写 'GOOD' >>> a.casefold() ## 全部变为小写 'good' >>> a.capitalize() ## 首字母大写 ' ...
分类:
编程语言 时间:
2021-02-25 12:19:06
阅读次数:
0
一、字符串 删除右边的空白 str.rstrip() ,删除左边的空白 str.lstrip(),如果删除左边+右边的空格 str.strip() #字符串大小写myName = 'zhang san'print(myName)print(myName.upper())print(myName.lo ...
分类:
编程语言 时间:
2021-02-22 12:42:40
阅读次数:
0
Given a string s of lower and upper case English letters. A good string is a string which doesn't have two adjacent characters s[i] and s[i + 1] where ...
分类:
其他好文 时间:
2021-02-22 12:38:24
阅读次数:
0
使用到的函数 CONCAT(str1,str2):字符连接函数 UPPER(str):将字符串改为大写字母 LOWER(str):将字符串改为小写字母 LENGTH(str):判定字符串长度 SUBSTRING(str,a,b):提取字段中的一段,从字符串str的第a位开始提取,提取b个字符 LEF ...
分类:
数据库 时间:
2021-02-20 12:11:20
阅读次数:
0
字符函数 函数返回值型 函数(参数) 描述 string base64(binary bin) 将二进制 bin 转换成 64 位的字符串 string concat(string|binary A, string|binary B...) 对二进制字节码或字符 串按次序进行拼接 array<str ...
分类:
其他好文 时间:
2021-02-10 13:05:47
阅读次数:
0
set的常见用法 #include <set> set<int> st; set<int>::iterator it; //迭代器 st.insert(int); //插入一个值 st.erase(int); // 删除一个值 st.erase(iterator); //删除迭代器指向的值 st.e ...
分类:
其他好文 时间:
2021-02-03 11:06:06
阅读次数:
0
#Hive 的函数 ##1.系统内置函数 1)查看系统自带的函数 show functions; show functions like "date"; 2)显示自带的函数的用法 desc function upper; desc function 'current_date' 记住带下划线的需要加 ...
分类:
其他好文 时间:
2021-01-25 11:02:17
阅读次数:
0
随机生成MAC //MAC地址分隔符 private static String SEPARATOR_OF_MAC = "-"; Random random = new Random(); //mac数据 String[] macs = { String.format("%02x", 0x52), ...
分类:
系统相关 时间:
2021-01-22 11:50:15
阅读次数:
0
方法一: Set NoCount On if exists(select * from tempdb..sysobjects where id=object_id('tempdb..##tempEANReport'))Begin drop table ##tempEANReportEndCreate ...
分类:
数据库 时间:
2021-01-19 12:01:00
阅读次数:
0
1. 二分查找 C++ STL标准库中提供有 lower_bound()、upper_bound()、equal_range() 以及 binary_search() 这 4 个查找函数,它们的底层实现采用的都是二分查找的方式。 1.1 lower_bound() lower_bound() 函数用 ...
分类:
其他好文 时间:
2021-01-18 11:23:23
阅读次数:
0