Wesley13 Wesley13
3年前
java判断字符串是否为数字或中文或字母
1.判断字符串是否仅为数字:1用JAVA自带的函数public static boolean isNumeric(String str){  for (int i  str.length();i0;){      if (!Character.isDigit(str.charAt(i))){
Stella981 Stella981
3年前
Python(phone)模块获取手机号归属地、区号、运营商等
Python(phone)模块获取手机号归属地、区号、运营商等一、我使用的是python3,可以自行搜索下载二、安装phone模块, pipinstallphone 三、测试代码如下:fromphoneimportPhoneif__name__"__main__":phoneN
可莉 可莉
3年前
20个常用java代码段
下面是20个非常有用的Java程序片段,希望能对你有用。1\.字符串有整型的相互转换12StringaString.valueOf(2);//integertonumericstringint iInteger.parseInt(a);//numericstringtoanin
Wesley13 Wesley13
3年前
Python爬虫
1\.爬一下知乎importrequestsurl'http://www.zhihu.com/'resrequests.get(url).textprint(res)结果:直接访问发现返回400错误E:\\360Downloads\\Python36\\python3.exeE:/work/ya
Wesley13 Wesley13
3年前
lz
原文链接: lzstring面向localstorage的字符串压缩库(https://my.oschina.net/ahaoboy/blog/4696653)https://www.npmjs.com/package/lzstring(https://www.oschina.net/action/GoToLink?urlhttps%3A
Stella981 Stella981
3年前
Impala常用函数索引
增加X自然天selectdays_add(now(),2)字符串转Timestampselectto\_timestamp('2019101420:00:01','yyyyMMddHH:mm:ss');注意,Impala的timestamp的标准是ISO8601 参考:https://en.wiki
Python进阶者 Python进阶者
2年前
盘点一个Python自动化办公的实战案例
大家好,我是皮皮。一、前言前几天在Python钻石交流群【Hxy任我肥】问了一个Python自动化办公的问题,提问截图如下:!(https://uploadimages.jianshu.io/upload_images/26239
Python进阶者 Python进阶者
2年前
Python读取单元格中数据 如000008,读出来后就变成了8,怎么破?
大家好,我是皮皮。一、前言前几天在Python星耀交流群【此类生物】问了一个Python数据处理的问题,提问截图如下:!(https://uploadimages.jianshu.io/upload_images/26239789
Python进阶者 Python进阶者
2年前
盘点一个高德地图Python网络爬虫中前端数据和获取数据不一致问题
大家好,我是皮皮。一、前言前几天在Python钻石交流群【心田有垢生荒草】问了一个Python网络爬虫的问题,下图是截图:!(https://uploadimages.jianshu.io/upload_images/26
接口性能测试---locust脚本编写(一)
locust是用python编写的一款开源接口性能测试工具,以python3为例,直接使用pip安装即可,pip3installlocust。安装完成之后可使用locustversion查看对应的版本。