Seven Ways of Centering With CSShttp://demosthenes.info/blog/723/Seven-Ways-of-Centering-With-CSSAbsolute Centering in CSShttp://codepen.io/shshaw/ful...
分类:
其他好文 时间:
2015-03-31 12:18:49
阅读次数:
81
void Decode(char *p){int i=0;while(*(p+i)){ if ((*p=*(p+i)) == '%') { *p=*(p+i+1) >= 'A' ? ((*(p+i+1) & 0XDF) - 'A') + 10 : (*(p+i+1) - '0'); ...
分类:
Web程序 时间:
2015-03-31 12:14:12
阅读次数:
112
1001. AlphacodeConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionAlice and Bob need to send secret messages to each other and are discussing ways to encode their messages: Alice: "Let's jus...
分类:
其他好文 时间:
2015-03-31 09:03:10
阅读次数:
154
'; $xml .= ""; $xml .= array_to_xml($data); $xml .= ""; return $xml; } function xml_decode($xml, $root = 'so'...
分类:
其他好文 时间:
2015-03-31 00:50:32
阅读次数:
124
A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message conta...
分类:
其他好文 时间:
2015-03-30 20:29:37
阅读次数:
111
char Dec2HexChar(short int n)
{
if ( 0 <= n && n <= 9 ) {
return char( short('0') + n );
} else if ( 10 <= n && n <= 15 ) {
return char( short('A...
分类:
编程语言 时间:
2015-03-30 16:31:54
阅读次数:
163
练习3-72原文Exercise 3.72. In a similar way to exercise 3.71 generate a stream of all numbers that can be written as the sum of two squares in three different ways (showing how they can be so written). 代码...
分类:
其他好文 时间:
2015-03-29 12:17:48
阅读次数:
147
#encoding:utf-8
#用命令行执行
import json
s = '百度'
print s # 输出环境为gbk,编码为utf-8,输出乱码
print s.decode('utf-8') # => 发现输出环境为gbk,自动转换
print s.decode('utf-8').encode('utf-8') # 输出环境为gbk,编码为utf-8...
分类:
编程语言 时间:
2015-03-29 01:55:58
阅读次数:
203
在 python 源代码文件中,如果你有用到非ASCII字符,则需要在文件头部进行字符编码的声明,声明如下:# code:UTF-8因为python 只检查 #、coding 和编码字符串,所以你可能回见到下面的声明方式,这是有些人为了美观等原因才这样写的:#-*-coding:UTF-8-*-常见...
分类:
编程语言 时间:
2015-03-29 00:36:29
阅读次数:
168
Decode Ways问题:A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded...
分类:
其他好文 时间:
2015-03-28 21:44:51
阅读次数:
172