码迷,mamicode.com
首页 >  
搜索关键字:upper    ( 2194个结果
python中字符串的大小写转换
1、 >>> a = "gooD" ##测试字符串 >>> a.lower() ##全部变为小写 'good' >>> a.upper() ## 全部变为大写 'GOOD' >>> a.casefold() ## 全部变为小写 'good' >>> a.capitalize() ## 首字母大写 ' ...
分类:编程语言   时间:2021-02-25 12:19:06    阅读次数:0
第02周学习提升建议:【python安装、变量、输入输出、流程、循环】--【第三篇】字符串和数字
一、字符串 删除右边的空白 str.rstrip() ,删除左边的空白 str.lstrip(),如果删除左边+右边的空格 str.strip() #字符串大小写myName = 'zhang san'print(myName)print(myName.upper())print(myName.lo ...
分类:编程语言   时间:2021-02-22 12:42:40    阅读次数:0
LeetCode - Make The String Great
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
Mysql 字段字符串修改
使用到的函数 CONCAT(str1,str2):字符连接函数 UPPER(str):将字符串改为大写字母 LOWER(str):将字符串改为小写字母 LENGTH(str):判定字符串长度 SUBSTRING(str,a,b):提取字段中的一段,从字符串str的第a位开始提取,提取b个字符 LEF ...
分类:数据库   时间:2021-02-20 12:11:20    阅读次数:0
13-Hive字符函数
字符函数 函数返回值型 函数(参数) 描述 string base64(binary bin) 将二进制 bin 转换成 64 位的字符串 string concat(string|binary A, string|binary B...) 对二进制字节码或字符 串按次序进行拼接 array<str ...
分类:其他好文   时间:2021-02-10 13:05:47    阅读次数:0
set的常见用法
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 的函数
#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地址和IP地址
随机生成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
SQL Server在每个数据库上运行同一个脚本
方法一: 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
STL封装的查找
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
2194条   上一页 1 2 3 4 5 ... 220 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!