字符的Unicode表示法 JavaScript允许采用\uxxxx形式表示一个字符,其中xxxx表示字符的Unicode码点。 但是,这种表示法只限于码点在\u0000~\uFFFF之间的字符。超出这个范围的字符,必须用两个双字节的形式表示。 上面代码表示,如果直接在\u 后面跟上超过0xFFFF ...
分类:
其他好文 时间:
2017-10-11 20:35:42
阅读次数:
219
1 Poco::Net::DNS HostEntry 中存储 host primary name(canonical name)、alias name list、IP address list。 2 相关 API 得到一个 HostEntry 实例: 输出域名: Address 和 Alias: 3 ...
分类:
Web程序 时间:
2017-09-29 19:38:47
阅读次数:
228
上网找到的, 新测可用, 版本ubuntu 17.04 1.Ctrl + Alt + t 组合键打开终端, 输入以下命令即可 gsettings set com.canonical.Unity.Launcher launcher-position Bottom 来源: http://jingyan. ...
分类:
系统相关 时间:
2017-08-24 10:41:01
阅读次数:
378
执行以下代码 String a1=new String("abc"); String a2=new String("abc"); System.out.println(a1==a2); System.out.println(a1==a2.intern()); System.out.println(" ...
分类:
其他好文 时间:
2017-08-19 18:50:59
阅读次数:
136
Optionally replace a try statement with the desugaring of a try-with-resources statement. The canonical desugaring of try ResourceSpecification Block ... ...
分类:
编程语言 时间:
2017-08-19 12:38:24
阅读次数:
166
set superuser in ubuntu: sudo passwd move taskbar to bottom: gsettings set com.canonical.Unity.Launcher launcher-position Bottom set shortcut on ubunt ...
分类:
系统相关 时间:
2017-08-13 14:19:10
阅读次数:
195
通过编辑 vi /etc/resolv.conf 设置首选DNS和次要DNS。如下,排在前面的就是首选DNS,后面一行就是次要的DNS服务器DNS 检查配置是否生效: ...
分类:
其他好文 时间:
2017-08-09 12:59:03
阅读次数:
127
题目:Problem L. Canonical duelInput file: standard inputOutput file: standard outputTime limit: 2 secondsMemory limit: 256 megabytesIn the game «Canonic ...
分类:
其他好文 时间:
2017-08-06 00:15:11
阅读次数:
240
给你一个网格(n<=2000,m<=2000),有一些炸弹,你可以选择一个空的位置,再放一个炸弹并将其引爆,一个炸弹爆炸后,其所在行和列的所有炸弹都会爆炸,连锁反应。 问你所能引爆的最多炸弹数。 转化成: 将行列当成点,炸弹当成边,然后你可以给这个二分图加1条边,问你最大的连通块的边的数量。 可以通 ...
分类:
其他好文 时间:
2017-08-04 22:57:54
阅读次数:
173
题目原文: Add a method find() to the union-find data type so that find(i) returns the largest element in the connected component containing i. The operati ...
分类:
其他好文 时间:
2017-07-19 11:50:10
阅读次数:
212