【明報專訊】第一次接到電話,希望我談談「中國夢」的時候,我的第一個反應是:「一千枚飛彈對準我家,我哪裏還有中國夢啊?」
可是沉靜下來思索,1952年生在台灣的我,還有我前後幾代人,還真的是在「中國夢」裏長大的,我的第一個中國夢是什麼呢?
我們上幼稚園時,就已經穿著軍人的制服、帶著木製的步槍去殺「共匪」了,口裏唱著歌。當年所有的孩子都會唱的那首歌,叫做《反攻大陸去》:
反攻 反攻 反攻大陸去
x = u'床前明月光 疑是地上霜 举头望明月 低头思故乡' | |
print '\n'.join(' '.join(x) for x in zip(*map(list, x.split(' ')))) #这个写法还有点问题,有空再来研究 | |
--- | |
低举疑床 | |
头头是前 | |
思望地明 | |
故明上月 | |
乡月霜光 |
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
tb1.py | |
Created by dn on 2011-07-24. | |
Copyright (c) 2011 shubz. All rights reserved. | |
""" | |
import os | |
import sys | |
import re |
import urllib | |
import urllib2 | |
import os | |
picurl="http://images.51cto.com/files/uploadimg/20100630/104906665.jpg" | |
save_path="d:\\" | |
imgData = urllib2.urlopen(picurl).read() | |
# 给定图片存放名称 | |
fileName = save_path + "\\ddd.jpg" | |
# 文件名是否存在 |
<?php | |
/*************************************************************************** | |
* | |
* Copyright (c) 2012 Baidu.com, Inc. All Rights Reserved | |
* | |
**************************************************************************/ | |
/** | |
* @file ip.php | |
* @author dn([email protected]) |
<?php | |
$file_name = "7"; | |
$out = $file_name.".out"; | |
$num = 3000; | |
$lines = get_lines_random( $file_name, $num); | |
foreach($lines as $key=>$value) { | |
file_put_contents($out, $value, FILE_APPEND); | |
file_put_contents($out, "\n", FILE_APPEND); |
// 安装 php memcached 扩展 http://www.php.net/manual/zh/book.memcached.php | |
// 注意:不是http://www.php.net/manual/zh/book.memcache.php | |
// 确保已经安装了libmemcached | |
wget http://pecl.php.net/get/memcached-2.1.0.tgz | |
tar zxf memcached-2.1.0 | |
cd memcached-2.1.0 | |
phpize | |
./configure | |
make |
.markdown-body { | |
font-size: 14px; | |
line-height: 1.6; | |
} | |
.markdown-body > *:first-child { | |
margin-top: 0 !important; | |
} | |
.markdown-body > *:last-child { | |
margin-bottom: 0 !important; | |
} |
function build_http_query($params) { | |
if (!$params) return ''; | |
// Urlencode both keys and values | |
$keys = array_keys($params); | |
$values = array_values($params); | |
//$keys = OAuthUtil::urlencode_rfc3986(array_keys($params)); | |
//$values = OAuthUtil::urlencode_rfc3986(array_values($params)); | |
$params = array_combine($keys, $values); |
#!/usr/bin/env python | |
# | |
# Converts any integer into a base [BASE] number. I have chosen 62 | |
# as it is meant to represent the integers using all the alphanumeric | |
# characters, [no special characters] = {0..9}, {A..Z}, {a..z} | |
# | |
# I plan on using this to shorten the representation of possibly long ids, | |
# a la url shortenters | |
# |