参考:http://www.cnblogs.com/see7di/archive/2011/06/17/2239722.html内容如下:理解linux下的 eth0,eth1,eth2,lo 网卡配置eth0,eth1,eth2……代表网卡一,网卡二,网卡三……lo代表127.0.0.1,即loc...
分类:
系统相关 时间:
2014-07-16 23:22:21
阅读次数:
391
昨天在群看到有人发了个文章叫《“短”化你的代码》,思路非常不错,采用unicode的零宽字符来实现字符隐藏,虽然有字符,可是你却看不见它。这篇文章详细的介绍了这种方法的实现原理,最后还给出了一个生成工具。当然,作者算了留了一个小小的练习给我们,因为他只用了两个字符,导致转换后的数据是原始数据的 8倍...
分类:
Web程序 时间:
2014-06-27 23:09:49
阅读次数:
358
计算机里面,编码方法有很多种,英文的一般用ascii,而中文有unicode,utf-8,gbk,utf-16等等。unicode是 utf-8,gbk,utf-16这些的父编码,这些子编码都能转换成unicode编码,然后转化成子编码,例如utf8可以转成unicode,再转gbk,但不能直接从u...
分类:
编程语言 时间:
2014-06-27 18:40:14
阅读次数:
235
构造字符串字面量方法一:最简单的使用单引号或者双引号括起来的字符串,比如"hello"。方法二:使用%q配合分界符,%q代表单引号str=%q!he/lo!方法三:使用%Q配合分界符,%Q代表双引号str=%Q{he/lo}方法四:here document构建字符串,该方法比较适合用于多行字符串的...
分类:
其他好文 时间:
2014-06-27 15:17:01
阅读次数:
247
【描述】考虑排好序的N(N 2 #include 3 #include 4 #include 5 #include 6 const int maxn=32+5; 7 using namespace std; 8 long long c[maxn][maxn],n,o=0; 9 long lo...
分类:
其他好文 时间:
2014-06-27 11:27:58
阅读次数:
145
escape.py# -*- coding: utf8 -*-import sysif type('') is not type(b''): def u(s): return s bytes_type = bytes unicode_type = str bas...
分类:
编程语言 时间:
2014-06-27 11:10:20
阅读次数:
480
今天用Xshell 连接CentOS6.5,当终端》编码设置为:Unicode(UTF-8)时,执行service iptables restart命令的输出就会乱码;当编码设置为:默认语言时,ls的输出就会乱码!乱码问题如下图:执行locale命令输出结果如下:LANG=zh_CN.GB18030
LC_CTYPE="zh_CN.GB18030"
LC_NUMERIC="zh_CN.GB1803...
分类:
其他好文 时间:
2014-06-27 07:33:57
阅读次数:
310
Working with Characters (与字符相关) 在Swift中,String类型表示一组有序字符的值.每个字符都是一个Unicode符号.可以使用for-in循环来遍历字符串中的每个字符: for character in "Dog!🐶" { println(...
分类:
移动开发 时间:
2014-06-26 15:56:01
阅读次数:
235
设定IP$sudo gedit /etc/network/interfaces auto lo iface lo inet loopbackauto eth0 iface eth0 inet static address 192.168.0.111netmask 255.255.255.0 gate...
分类:
其他好文 时间:
2014-06-26 14:43:05
阅读次数:
236
NSString:它的实例可以包含任意的Unicode字符eg:NSString*name=@"jethro";//@"..."是一种oc简化写法
分类:
移动开发 时间:
2014-06-26 06:10:39
阅读次数:
241