晴空闲云 晴空闲云
4年前
javascript实践教程-05-数据类型
本节目标1.掌握js中7种数据类型。2.掌握5种基本数据类型number、string、boolean、null、undefined的声明。3.掌握js中数组的声明和数组相关的方法。4.掌握js中对象的声明和属性、方法的使用。内容摘要本篇介绍了js中的7种数据类型,其中5种基本数据类型:number、string、boolean、null、unde
Wesley13 Wesley13
4年前
java unicode转中文
每次不知道的问题就是百度,不知看的那篇文章找到了以下代码。privatestaticfinalPatternUNICODE_2_STRING_PATTERNPattern.compile("(\\\\u(\\p{XDigit}{4}))");pub
Wesley13 Wesley13
4年前
java8 stream初试,map排序,list去重,统计重复元素个数,获取map的key集合和value集合
//定义一个100元素的集合,包含AZList<StringlistnewLinkedList<();for(inti0;i<100;i){list.add(String.valueOf((char)('A'Math.random()('Z''A'1))));}
菜鸟小欧 菜鸟小欧
4年前
c语言成绩管理系统简
include<stdio.hinclude<stdlib.hdefineN50include<string.hinclude<conio.hintmax,min;floatave;structstudentintsx,yw,total;charname10,xh12;;//定义基本信息structstudentstuN
Stella981 Stella981
4年前
Linux shell脚本执行错误:bad substitution
脚本内容如下:!/bin/shstring"Thisisastring!"echo${string:1:4}添加可执行权限后报错badsubstitution:!输入图片说明(https://static.oschina.net/uploads/img/201612/301
Stella981 Stella981
4年前
C#后台调用Http外网接口(GET, POST)
1.get方法调用接口获取json文件内容public void GetFunction()        {            string serviceAddress  "http://222.111.999.444:8687/tttr/usercrd/12/b7e50cb45a?userid9
Stella981 Stella981
4年前
AtCoder Beginner Contest 132 F
数sqrt缩小范围整除分块1include<cstdio2include<cstdlib3include<cmath4include<cstring5include<string6include<algorithm
Wesley13 Wesley13
4年前
Java基础篇(02):特殊的String类,和相关扩展API
本文源码:GitHub·点这里(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fgithub.com%2Fcicadasmile%2Fjavabaseparent)||GitEE·点这里(https://gitee.com/cicadasmile/javabasepa
Stella981 Stella981
4年前
Google Guava Striped 实现细粒度锁
首先不谈Striped能做什么,我们来看下如下的代码/   购买产品   @param user 用户   @param buyAmount 购买金额   @param productId 产品编号  / public static void buy(String user
Wesley13 Wesley13
4年前
C语言学生管理系统(原版本)(自编)
/系统特色:(大牛勿笑)  颜色提示  文字提示  功能/1include<stdio.h2include<stdlib.h3include<math.h4include<string.h5